test(e2e): avoid relying on CDN + reduce debounce delay
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script src="https://unpkg.com/marked@0.3.6"></script>
|
||||
<script src="https://unpkg.com/lodash@4.16.0"></script>
|
||||
<script src="../../../../node_modules/marked/marked.min.js"></script>
|
||||
<script src="../../../../node_modules/lodash/lodash.min.js"></script>
|
||||
<script src="../../dist/vue.global.js"></script>
|
||||
|
||||
<div id="editor">
|
||||
@@ -8,13 +8,14 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const delay = window.location.hash === '#test' ? 16 : 300
|
||||
const { ref, computed } = Vue
|
||||
|
||||
const App = {
|
||||
setup() {
|
||||
const input = ref('# hello')
|
||||
const output = computed(() => marked(input.value, { sanitize: true }))
|
||||
const update = _.debounce(e => { input.value = e.target.value }, 300)
|
||||
const update = _.debounce(e => { input.value = e.target.value }, delay)
|
||||
|
||||
return {
|
||||
input,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script src="../../dist/vue.global.js"></script>
|
||||
<link rel="stylesheet" href="https://unpkg.com/todomvc-app-css/index.css">
|
||||
<link rel="stylesheet" href="../../../../node_modules/todomvc-app-css/index.css">
|
||||
|
||||
<div id="app">
|
||||
<section class="todoapp">
|
||||
|
||||
Reference in New Issue
Block a user