diff --git a/test/runtime/samples/get-state/_config.js b/test/runtime/samples/get-state/_config.js deleted file mode 100644 index 6be93b5c80..0000000000 --- a/test/runtime/samples/get-state/_config.js +++ /dev/null @@ -1,7 +0,0 @@ -export default { - test ( assert, component ) { - assert.equal( component.a, 1 ); - assert.equal( component.c, 3 ); - assert.deepEqual( component, { a: 1, b: 2, c: 3 }); - } -}; diff --git a/test/runtime/samples/get-state/main.html b/test/runtime/samples/get-state/main.html deleted file mode 100644 index 1926f65e02..0000000000 --- a/test/runtime/samples/get-state/main.html +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/test/runtime/samples/globals-accessible-directly/_config.js b/test/runtime/samples/globals-accessible-directly/_config.js index ee7e79fd17..697252c202 100644 --- a/test/runtime/samples/globals-accessible-directly/_config.js +++ b/test/runtime/samples/globals-accessible-directly/_config.js @@ -1,7 +1,7 @@ export default { html: '', - test ( assert, component, target ) { - assert.htmlEqual( target.innerHTML, 'NaN' ); + test(assert, component, target) { + assert.htmlEqual(target.innerHTML, 'NaN'); } }; diff --git a/test/runtime/samples/onstate-event/_config.js b/test/runtime/samples/onstate-event/_config.js deleted file mode 100644 index 7875c5402c..0000000000 --- a/test/runtime/samples/onstate-event/_config.js +++ /dev/null @@ -1,49 +0,0 @@ -export default { - 'skip-ssr': true, - - props: { - foo: 'woo!' - }, - - html: ` -

woo!

-

undefined

- `, - - test(assert, component, target) { - const history = []; - - component.$on('state', ({ changed, current, previous }) => { - history.push({ changed, current, previous }); - component.bar = current.foo.toUpperCase(); - }); - - component.foo = 'yeah!'; - assert.htmlEqual(target.innerHTML, ` -

yeah!

-

YEAH!

- `); - - component.unused = 'x'; - - assert.deepEqual(history, [ - { - changed: { foo: true }, - current: { foo: 'yeah!' }, - previous: { foo: 'woo!' } - }, - // this is NOT received, because Svelte will not allow - // an event handler to trigger itself recursively - // { - // changed: { bar: true }, - // current: { foo: 'yeah!', bar: 'YEAH!' }, - // previous: { foo: 'yeah!' } - // }, - { - changed: { unused: true }, - current: { foo: 'yeah!', bar: 'YEAH!', unused: 'x' }, - previous: { foo: 'yeah!', bar: 'YEAH!' } - } - ]); - } -}; diff --git a/test/runtime/samples/onstate-event/main.html b/test/runtime/samples/onstate-event/main.html deleted file mode 100644 index fbcc02f2f8..0000000000 --- a/test/runtime/samples/onstate-event/main.html +++ /dev/null @@ -1,2 +0,0 @@ -

{foo}

-

{bar}

\ No newline at end of file diff --git a/test/runtime/samples/onupdate/_config.js b/test/runtime/samples/onupdate/_config.js deleted file mode 100644 index 9a4ad53767..0000000000 --- a/test/runtime/samples/onupdate/_config.js +++ /dev/null @@ -1,20 +0,0 @@ -export default { - 'skip-ssr': true, - - props: { - value: 'hello!' - }, - - html: ` -

hello!

-

hello!

- `, - - test(assert, component, target) { - component.value = 'goodbye!'; - assert.htmlEqual(target.innerHTML, ` -

goodbye!

-

goodbye!

- `); - } -}; diff --git a/test/runtime/samples/onupdate/main.html b/test/runtime/samples/onupdate/main.html deleted file mode 100644 index 310606b182..0000000000 --- a/test/runtime/samples/onupdate/main.html +++ /dev/null @@ -1,15 +0,0 @@ - - -

{value}

-

\ No newline at end of file