diff --git a/test/runtime/index.js b/test/runtime/index.js index 7b9f0ae05d..3d01331a21 100644 --- a/test/runtime/index.js +++ b/test/runtime/index.js @@ -162,7 +162,13 @@ describe.only("runtime", () => { } if (config.test) { - return Promise.resolve(config.test(assert, component, target, window, raf)).then(() => { + return Promise.resolve(config.test({ + assert, + component, + target, + window, + raf + })).then(() => { component.$destroy(); }); } else { diff --git a/test/runtime/samples/action-custom-event-handler-in-each-destructured/_config.js b/test/runtime/samples/action-custom-event-handler-in-each-destructured/_config.js index 1ea8d254d2..3bd0fd985f 100644 --- a/test/runtime/samples/action-custom-event-handler-in-each-destructured/_config.js +++ b/test/runtime/samples/action-custom-event-handler-in-each-destructured/_config.js @@ -8,7 +8,7 @@ export default {

second:

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('click'); const buttons = target.querySelectorAll('button'); diff --git a/test/runtime/samples/action-custom-event-handler-in-each/_config.js b/test/runtime/samples/action-custom-event-handler-in-each/_config.js index 976f2e4da4..abab64f8fd 100644 --- a/test/runtime/samples/action-custom-event-handler-in-each/_config.js +++ b/test/runtime/samples/action-custom-event-handler-in-each/_config.js @@ -8,7 +8,7 @@ export default {

fromState:

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('click'); const buttons = target.querySelectorAll('button'); diff --git a/test/runtime/samples/action-custom-event-handler-node-context/_config.js b/test/runtime/samples/action-custom-event-handler-node-context/_config.js index 4b2e6e9317..ea94abe9b3 100644 --- a/test/runtime/samples/action-custom-event-handler-node-context/_config.js +++ b/test/runtime/samples/action-custom-event-handler-node-context/_config.js @@ -3,7 +3,7 @@ export default { html: '', - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('click'); const button = target.querySelector('button'); diff --git a/test/runtime/samples/action-custom-event-handler-this/_config.js b/test/runtime/samples/action-custom-event-handler-this/_config.js index bd2e47ab50..194fa08c31 100644 --- a/test/runtime/samples/action-custom-event-handler-this/_config.js +++ b/test/runtime/samples/action-custom-event-handler-this/_config.js @@ -1,7 +1,7 @@ export default { html: ``, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const input = target.querySelector('input'); const event = new window.KeyboardEvent('keydown', { which: 13 diff --git a/test/runtime/samples/action-custom-event-handler-with-context/_config.js b/test/runtime/samples/action-custom-event-handler-with-context/_config.js index b740c70c67..104ec27503 100644 --- a/test/runtime/samples/action-custom-event-handler-with-context/_config.js +++ b/test/runtime/samples/action-custom-event-handler-with-context/_config.js @@ -1,7 +1,7 @@ export default { html: '', - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('click', { clientX: 42, clientY: 42 diff --git a/test/runtime/samples/action-custom-event-handler/_config.js b/test/runtime/samples/action-custom-event-handler/_config.js index 13d9be4151..ad13d900b2 100644 --- a/test/runtime/samples/action-custom-event-handler/_config.js +++ b/test/runtime/samples/action-custom-event-handler/_config.js @@ -1,7 +1,7 @@ export default { html: '', - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('click', { clientX: 42, clientY: 42 diff --git a/test/runtime/samples/action-function/_config.js b/test/runtime/samples/action-function/_config.js index b6bd59595f..07b4087dcc 100644 --- a/test/runtime/samples/action-function/_config.js +++ b/test/runtime/samples/action-function/_config.js @@ -3,7 +3,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const button = target.querySelector('button'); const eventEnter = new window.MouseEvent('mouseenter'); const eventLeave = new window.MouseEvent('mouseleave'); diff --git a/test/runtime/samples/action-ternary-template/_config.js b/test/runtime/samples/action-ternary-template/_config.js index 9666853b1e..adf23a9f68 100644 --- a/test/runtime/samples/action-ternary-template/_config.js +++ b/test/runtime/samples/action-ternary-template/_config.js @@ -8,7 +8,7 @@ export default {

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const header = target.querySelector('h1'); const click = new window.MouseEvent('click'); diff --git a/test/runtime/samples/action-this/_config.js b/test/runtime/samples/action-this/_config.js index e3df5947e6..de7f834cdc 100644 --- a/test/runtime/samples/action-this/_config.js +++ b/test/runtime/samples/action-this/_config.js @@ -1,5 +1,5 @@ export default { - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const button = target.querySelector('button'); const click = new window.MouseEvent('click'); diff --git a/test/runtime/samples/action-update/_config.js b/test/runtime/samples/action-update/_config.js index c98cb59d7f..305c890ca8 100644 --- a/test/runtime/samples/action-update/_config.js +++ b/test/runtime/samples/action-update/_config.js @@ -3,7 +3,7 @@ export default { `, - async test (assert, component, target, window) { + async test({ assert, component, target, window }) { const button = target.querySelector('button'); const enter = new window.MouseEvent('mouseenter'); const leave = new window.MouseEvent('mouseleave'); diff --git a/test/runtime/samples/action/_config.js b/test/runtime/samples/action/_config.js index b6bd59595f..07b4087dcc 100644 --- a/test/runtime/samples/action/_config.js +++ b/test/runtime/samples/action/_config.js @@ -3,7 +3,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const button = target.querySelector('button'); const eventEnter = new window.MouseEvent('mouseenter'); const eventLeave = new window.MouseEvent('mouseleave'); diff --git a/test/runtime/samples/after-render-prevents-loop/_config.js b/test/runtime/samples/after-render-prevents-loop/_config.js index 32820279ca..e922fed358 100644 --- a/test/runtime/samples/after-render-prevents-loop/_config.js +++ b/test/runtime/samples/after-render-prevents-loop/_config.js @@ -10,7 +10,7 @@ export default {

hello!

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

goodbye!

diff --git a/test/runtime/samples/after-render-triggers-update/_config.js b/test/runtime/samples/after-render-triggers-update/_config.js index 32820279ca..e922fed358 100644 --- a/test/runtime/samples/after-render-triggers-update/_config.js +++ b/test/runtime/samples/after-render-triggers-update/_config.js @@ -10,7 +10,7 @@ export default {

hello!

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

goodbye!

diff --git a/test/runtime/samples/animation-css/_config.js b/test/runtime/samples/animation-css/_config.js index f8aa2388cf..544c6378ff 100644 --- a/test/runtime/samples/animation-css/_config.js +++ b/test/runtime/samples/animation-css/_config.js @@ -17,7 +17,7 @@ export default {
e
`, - test(assert, component, target, window, raf) { + test({ assert, component, target, window, raf }) { let divs = document.querySelectorAll('div'); divs.forEach(div => { div.getBoundingClientRect = function() { diff --git a/test/runtime/samples/animation-js-delay/_config.js b/test/runtime/samples/animation-js-delay/_config.js index 79f6e6e07b..faed25ecaa 100644 --- a/test/runtime/samples/animation-js-delay/_config.js +++ b/test/runtime/samples/animation-js-delay/_config.js @@ -17,7 +17,7 @@ export default {
e
`, - test(assert, component, target, window, raf) { + test({ assert, component, target, window, raf }) { let divs = document.querySelectorAll('div'); divs.forEach(div => { div.getBoundingClientRect = function() { diff --git a/test/runtime/samples/animation-js/_config.js b/test/runtime/samples/animation-js/_config.js index cb7c6fe394..a31825c3f9 100644 --- a/test/runtime/samples/animation-js/_config.js +++ b/test/runtime/samples/animation-js/_config.js @@ -17,7 +17,7 @@ export default {
e
`, - test(assert, component, target, window, raf) { + test({ assert, component, target, window, raf }) { let divs = document.querySelectorAll('div'); divs.forEach(div => { div.getBoundingClientRect = function() { diff --git a/test/runtime/samples/attribute-boolean-false/_config.js b/test/runtime/samples/attribute-boolean-false/_config.js index 4c0fd0221c..14fdeb9fdc 100644 --- a/test/runtime/samples/attribute-boolean-false/_config.js +++ b/test/runtime/samples/attribute-boolean-false/_config.js @@ -1,6 +1,6 @@ export default { html: ``, - test (assert, component, target) { + test({ assert, component, target }) { const textarea = target.querySelector('textarea'); assert.ok(textarea.readOnly === false); }, diff --git a/test/runtime/samples/attribute-boolean-indeterminate/_config.js b/test/runtime/samples/attribute-boolean-indeterminate/_config.js index de3e997fd1..0e24f92c51 100644 --- a/test/runtime/samples/attribute-boolean-indeterminate/_config.js +++ b/test/runtime/samples/attribute-boolean-indeterminate/_config.js @@ -11,7 +11,7 @@ export default { `, - test(assert, component, target) { + test({ assert, component, target }) { const input = target.querySelector('input'); assert.ok(input.indeterminate); diff --git a/test/runtime/samples/attribute-boolean-true/_config.js b/test/runtime/samples/attribute-boolean-true/_config.js index 860867b60f..0e402ed1e3 100644 --- a/test/runtime/samples/attribute-boolean-true/_config.js +++ b/test/runtime/samples/attribute-boolean-true/_config.js @@ -1,6 +1,6 @@ export default { html: ``, - test (assert, component, target) { + test({ assert, component, target }) { const textarea = target.querySelector('textarea'); assert.ok(textarea.readOnly); }, diff --git a/test/runtime/samples/attribute-casing/_config.js b/test/runtime/samples/attribute-casing/_config.js index e179b8c66d..27d496da9d 100644 --- a/test/runtime/samples/attribute-casing/_config.js +++ b/test/runtime/samples/attribute-casing/_config.js @@ -11,7 +11,7 @@ export default { `, - test(assert, component, target) { + test({ assert, component, target }) { const attr = sel => target.querySelector(sel).attributes[0].name; assert.equal(attr('div'), 'class'); diff --git a/test/runtime/samples/attribute-dynamic-shorthand/_config.js b/test/runtime/samples/attribute-dynamic-shorthand/_config.js index a0020c1f94..53f474db23 100644 --- a/test/runtime/samples/attribute-dynamic-shorthand/_config.js +++ b/test/runtime/samples/attribute-dynamic-shorthand/_config.js @@ -1,7 +1,7 @@ export default { html: `
`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.id = 'bar'; assert.equal( target.innerHTML, `
` ); } diff --git a/test/runtime/samples/attribute-dynamic-type/_config.js b/test/runtime/samples/attribute-dynamic-type/_config.js index b2e1e3b360..92f6ce196d 100644 --- a/test/runtime/samples/attribute-dynamic-type/_config.js +++ b/test/runtime/samples/attribute-dynamic-type/_config.js @@ -8,7 +8,7 @@ export default { html: ``, - test(assert, component, target) { + test({ assert, component, target }) { const input = target.querySelector('input'); assert.equal(input.type, 'text'); assert.equal(input.value, '42'); diff --git a/test/runtime/samples/attribute-dynamic/_config.js b/test/runtime/samples/attribute-dynamic/_config.js index 894d9f8570..04f419145d 100644 --- a/test/runtime/samples/attribute-dynamic/_config.js +++ b/test/runtime/samples/attribute-dynamic/_config.js @@ -1,7 +1,7 @@ export default { html: `
red
`, - test ( assert, component, target ) { + test({ assert, component, target }) { const div = target.querySelector( 'div' ); assert.equal( div.style.color, 'red' ); diff --git a/test/runtime/samples/attribute-namespaced/_config.js b/test/runtime/samples/attribute-namespaced/_config.js index 5d8cdfd70e..f8c0cb03fb 100644 --- a/test/runtime/samples/attribute-namespaced/_config.js +++ b/test/runtime/samples/attribute-namespaced/_config.js @@ -7,7 +7,7 @@ export default { `, - test ( assert, component, target ) { + test({ assert, component, target }) { const use = target.querySelector( 'use' ); assert.equal( use.getAttributeNS( 'http://www.w3.org/1999/xlink', 'href' ), '#bar' ); } diff --git a/test/runtime/samples/attribute-prefer-expression/_config.js b/test/runtime/samples/attribute-prefer-expression/_config.js index 2c37dc9ded..29fcbc7f13 100644 --- a/test/runtime/samples/attribute-prefer-expression/_config.js +++ b/test/runtime/samples/attribute-prefer-expression/_config.js @@ -5,7 +5,7 @@ export default { foo: false, }, - test(assert, component, target) { + test({ assert, component, target }) { const inputs = target.querySelectorAll('input'); assert.ok(inputs[0].checked); diff --git a/test/runtime/samples/attribute-static-boolean/_config.js b/test/runtime/samples/attribute-static-boolean/_config.js index ee2dc5be2b..c8b4332386 100644 --- a/test/runtime/samples/attribute-static-boolean/_config.js +++ b/test/runtime/samples/attribute-static-boolean/_config.js @@ -1,6 +1,6 @@ export default { html: ``, - test ( assert, component, target ) { + test({ assert, component, target }) { const textarea = target.querySelector( 'textarea' ); assert.ok( textarea.readOnly ); } diff --git a/test/runtime/samples/autofocus/_config.js b/test/runtime/samples/autofocus/_config.js index 4c2df381ed..faf9cf9f48 100644 --- a/test/runtime/samples/autofocus/_config.js +++ b/test/runtime/samples/autofocus/_config.js @@ -1,7 +1,7 @@ export default { html: '', - test(assert, component, target, window) { + test({ assert, component, target, window }) { component.visible = true; assert.equal(target.querySelector('input'), window.document.activeElement); } diff --git a/test/runtime/samples/await-component-oncreate/_config.js b/test/runtime/samples/await-component-oncreate/_config.js index 9e32f38cef..8b6f4e939e 100644 --- a/test/runtime/samples/await-component-oncreate/_config.js +++ b/test/runtime/samples/await-component-oncreate/_config.js @@ -5,7 +5,7 @@ export default { promise }, - test(assert, component, target) { + test({ assert, component, target }) { return promise.then(() => { assert.htmlEqual(target.innerHTML, `

42

diff --git a/test/runtime/samples/await-in-each/_config.js b/test/runtime/samples/await-in-each/_config.js index aaec19cedf..b1a232e4bd 100644 --- a/test/runtime/samples/await-in-each/_config.js +++ b/test/runtime/samples/await-in-each/_config.js @@ -18,7 +18,7 @@ export default {

a title: loading...

`, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(42); return thePromise diff --git a/test/runtime/samples/await-set-simultaneous/_config.js b/test/runtime/samples/await-set-simultaneous/_config.js index fe6a556dda..f9ed64e556 100644 --- a/test/runtime/samples/await-set-simultaneous/_config.js +++ b/test/runtime/samples/await-set-simultaneous/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target) { + test({ assert, component, target }) { const promise = Promise.resolve().then(() => { component.answer = 42; }); diff --git a/test/runtime/samples/await-then-catch-anchor/_config.js b/test/runtime/samples/await-then-catch-anchor/_config.js index 7132f9e30c..bb075095e5 100644 --- a/test/runtime/samples/await-then-catch-anchor/_config.js +++ b/test/runtime/samples/await-then-catch-anchor/_config.js @@ -13,7 +13,7 @@ export default {

loading...

`, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(42); return thePromise diff --git a/test/runtime/samples/await-then-catch-event/_config.js b/test/runtime/samples/await-then-catch-event/_config.js index 26399bb045..e42d16c4d8 100644 --- a/test/runtime/samples/await-then-catch-event/_config.js +++ b/test/runtime/samples/await-then-catch-event/_config.js @@ -12,7 +12,7 @@ export default {

loading...

`, - test(assert, component, target, window) { + test({ assert, component, target, window }) { fulfil(42); return thePromise diff --git a/test/runtime/samples/await-then-catch-if/_config.js b/test/runtime/samples/await-then-catch-if/_config.js index f0fdadc7b5..88f84dff79 100644 --- a/test/runtime/samples/await-then-catch-if/_config.js +++ b/test/runtime/samples/await-then-catch-if/_config.js @@ -14,7 +14,7 @@ export default {

loading...

`, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(42); return thePromise diff --git a/test/runtime/samples/await-then-catch-in-slot/_config.js b/test/runtime/samples/await-then-catch-in-slot/_config.js index e1661c437a..b0600a0f27 100644 --- a/test/runtime/samples/await-then-catch-in-slot/_config.js +++ b/test/runtime/samples/await-then-catch-in-slot/_config.js @@ -13,7 +13,7 @@ export default {

loading...

`, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(42); return thePromise diff --git a/test/runtime/samples/await-then-catch-multiple/_config.js b/test/runtime/samples/await-then-catch-multiple/_config.js index 3a431ea2b5..2daac524a2 100644 --- a/test/runtime/samples/await-then-catch-multiple/_config.js +++ b/test/runtime/samples/await-then-catch-multiple/_config.js @@ -14,7 +14,7 @@ export default {

loading...

`, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(42); return thePromise diff --git a/test/runtime/samples/await-then-catch-no-values/_config.js b/test/runtime/samples/await-then-catch-no-values/_config.js index 15e1711d04..2c3ce45dc1 100644 --- a/test/runtime/samples/await-then-catch-no-values/_config.js +++ b/test/runtime/samples/await-then-catch-no-values/_config.js @@ -11,7 +11,7 @@ export default { html: `waiting`, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(9000); return thePromise diff --git a/test/runtime/samples/await-then-catch-non-promise/_config.js b/test/runtime/samples/await-then-catch-non-promise/_config.js index 226c30bf69..dbc2f5eddc 100644 --- a/test/runtime/samples/await-then-catch-non-promise/_config.js +++ b/test/runtime/samples/await-then-catch-non-promise/_config.js @@ -7,7 +7,7 @@ export default {

the value is not actually a promise

`, - test(assert, component, target) { + test({ assert, component, target }) { component.thePromise = 'still not a promise'; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/await-then-catch-static/_config.js b/test/runtime/samples/await-then-catch-static/_config.js index 685ae37695..ada0dcc75b 100644 --- a/test/runtime/samples/await-then-catch-static/_config.js +++ b/test/runtime/samples/await-then-catch-static/_config.js @@ -13,7 +13,7 @@ export default {

loading...

`, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(42); return promise diff --git a/test/runtime/samples/await-then-catch/_config.js b/test/runtime/samples/await-then-catch/_config.js index e1661c437a..b0600a0f27 100644 --- a/test/runtime/samples/await-then-catch/_config.js +++ b/test/runtime/samples/await-then-catch/_config.js @@ -13,7 +13,7 @@ export default {

loading...

`, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(42); return thePromise diff --git a/test/runtime/samples/await-then-shorthand/_config.js b/test/runtime/samples/await-then-shorthand/_config.js index afd55d06bf..4635cf5127 100644 --- a/test/runtime/samples/await-then-shorthand/_config.js +++ b/test/runtime/samples/await-then-shorthand/_config.js @@ -11,7 +11,7 @@ export default { html: ``, - test(assert, component, target) { + test({ assert, component, target }) { fulfil(42); return thePromise diff --git a/test/runtime/samples/before-render-chain/_config.js b/test/runtime/samples/before-render-chain/_config.js index ea6b285803..838d96991d 100644 --- a/test/runtime/samples/before-render-chain/_config.js +++ b/test/runtime/samples/before-render-chain/_config.js @@ -7,7 +7,7 @@ export default { 1 `, - async test(assert, component, target) { + async test({ assert, component, target }) { await component.list.update(); assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/before-render-prevents-loop/_config.js b/test/runtime/samples/before-render-prevents-loop/_config.js index 32820279ca..e922fed358 100644 --- a/test/runtime/samples/before-render-prevents-loop/_config.js +++ b/test/runtime/samples/before-render-prevents-loop/_config.js @@ -10,7 +10,7 @@ export default {

hello!

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

goodbye!

diff --git a/test/runtime/samples/binding-audio-currenttime-duration-volume/_config.js b/test/runtime/samples/binding-audio-currenttime-duration-volume/_config.js index f59edf3a78..921969179f 100644 --- a/test/runtime/samples/binding-audio-currenttime-duration-volume/_config.js +++ b/test/runtime/samples/binding-audio-currenttime-duration-volume/_config.js @@ -4,7 +4,7 @@ export default { // instead skip: true, - test(assert, component, target, window) { + test({ assert, component, target, window }) { assert.equal(component.t, 0); assert.equal(component.d, 0); assert.equal(component.v, 0.5); diff --git a/test/runtime/samples/binding-indirect-computed/_config.js b/test/runtime/samples/binding-indirect-computed/_config.js index 123c0d6319..7519c4b0ed 100644 --- a/test/runtime/samples/binding-indirect-computed/_config.js +++ b/test/runtime/samples/binding-indirect-computed/_config.js @@ -11,7 +11,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const select = target.querySelector('select'); const options = target.querySelectorAll('option'); diff --git a/test/runtime/samples/binding-indirect/_config.js b/test/runtime/samples/binding-indirect/_config.js index cdc9f23552..a0a610f43f 100644 --- a/test/runtime/samples/binding-indirect/_config.js +++ b/test/runtime/samples/binding-indirect/_config.js @@ -32,7 +32,7 @@ export default {

shake it all about

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); const select = target.querySelector('select'); const options = target.querySelectorAll('option'); diff --git a/test/runtime/samples/binding-input-checkbox-deep-contextual/_config.js b/test/runtime/samples/binding-input-checkbox-deep-contextual/_config.js index a3671ec593..9b634710fc 100644 --- a/test/runtime/samples/binding-input-checkbox-deep-contextual/_config.js +++ b/test/runtime/samples/binding-input-checkbox-deep-contextual/_config.js @@ -33,7 +33,7 @@ export default {

1 completed

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const inputs = [ ...target.querySelectorAll('input') ]; assert.ok(inputs[0].checked); diff --git a/test/runtime/samples/binding-input-checkbox-group-outside-each/_config.js b/test/runtime/samples/binding-input-checkbox-group-outside-each/_config.js index 5c7012246d..ab89bc8daa 100644 --- a/test/runtime/samples/binding-input-checkbox-group-outside-each/_config.js +++ b/test/runtime/samples/binding-input-checkbox-group-outside-each/_config.js @@ -25,7 +25,7 @@ export default {

Beta

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const inputs = target.querySelectorAll('input'); assert.equal(inputs[0].checked, false); assert.equal(inputs[1].checked, true); diff --git a/test/runtime/samples/binding-input-checkbox-group/_config.js b/test/runtime/samples/binding-input-checkbox-group/_config.js index 5c7012246d..ab89bc8daa 100644 --- a/test/runtime/samples/binding-input-checkbox-group/_config.js +++ b/test/runtime/samples/binding-input-checkbox-group/_config.js @@ -25,7 +25,7 @@ export default {

Beta

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const inputs = target.querySelectorAll('input'); assert.equal(inputs[0].checked, false); assert.equal(inputs[1].checked, true); diff --git a/test/runtime/samples/binding-input-checkbox-indeterminate/_config.js b/test/runtime/samples/binding-input-checkbox-indeterminate/_config.js index 28c65b0fda..2e3a1c296f 100644 --- a/test/runtime/samples/binding-input-checkbox-indeterminate/_config.js +++ b/test/runtime/samples/binding-input-checkbox-indeterminate/_config.js @@ -11,7 +11,7 @@ export default {

indeterminate? true

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.checked, false); assert.equal(input.indeterminate, true); diff --git a/test/runtime/samples/binding-input-checkbox-with-event-in-each/_config.js b/test/runtime/samples/binding-input-checkbox-with-event-in-each/_config.js index f3e721587e..b502ed40af 100644 --- a/test/runtime/samples/binding-input-checkbox-with-event-in-each/_config.js +++ b/test/runtime/samples/binding-input-checkbox-with-event-in-each/_config.js @@ -17,7 +17,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const { cats } = component; const newCats = cats.slice(); newCats.push({ diff --git a/test/runtime/samples/binding-input-checkbox/_config.js b/test/runtime/samples/binding-input-checkbox/_config.js index abe4c8879b..93f673aa07 100644 --- a/test/runtime/samples/binding-input-checkbox/_config.js +++ b/test/runtime/samples/binding-input-checkbox/_config.js @@ -13,7 +13,7 @@ export default {

true

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.checked, true); diff --git a/test/runtime/samples/binding-input-number/_config.js b/test/runtime/samples/binding-input-number/_config.js index 91cc5ea88b..869b9f9896 100644 --- a/test/runtime/samples/binding-input-number/_config.js +++ b/test/runtime/samples/binding-input-number/_config.js @@ -13,7 +13,7 @@ export default {

number 42

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, '42'); diff --git a/test/runtime/samples/binding-input-radio-group/_config.js b/test/runtime/samples/binding-input-radio-group/_config.js index d16f17bf77..e289d48597 100644 --- a/test/runtime/samples/binding-input-radio-group/_config.js +++ b/test/runtime/samples/binding-input-radio-group/_config.js @@ -25,7 +25,7 @@ export default {

Beta

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const inputs = target.querySelectorAll('input'); assert.equal(inputs[0].checked, false); assert.equal(inputs[1].checked, true); diff --git a/test/runtime/samples/binding-input-range-change/_config.js b/test/runtime/samples/binding-input-range-change/_config.js index 092df852e9..62e9562770 100644 --- a/test/runtime/samples/binding-input-range-change/_config.js +++ b/test/runtime/samples/binding-input-range-change/_config.js @@ -13,7 +13,7 @@ export default {

number 42

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, '42'); diff --git a/test/runtime/samples/binding-input-range/_config.js b/test/runtime/samples/binding-input-range/_config.js index 3ef0f00c8a..4c3d37a667 100644 --- a/test/runtime/samples/binding-input-range/_config.js +++ b/test/runtime/samples/binding-input-range/_config.js @@ -13,7 +13,7 @@ export default {

number 42

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, '42'); diff --git a/test/runtime/samples/binding-input-text-contextual/_config.js b/test/runtime/samples/binding-input-text-contextual/_config.js index 80285c52f3..bb7f16c8bb 100644 --- a/test/runtime/samples/binding-input-text-contextual/_config.js +++ b/test/runtime/samples/binding-input-text-contextual/_config.js @@ -27,7 +27,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const inputs = [...target.querySelectorAll('input')]; const items = component.items; const event = new window.Event('input'); diff --git a/test/runtime/samples/binding-input-text-deconflicted/_config.js b/test/runtime/samples/binding-input-text-deconflicted/_config.js index b3bce567a8..46fe3e2a38 100644 --- a/test/runtime/samples/binding-input-text-deconflicted/_config.js +++ b/test/runtime/samples/binding-input-text-deconflicted/_config.js @@ -15,7 +15,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, 'world'); diff --git a/test/runtime/samples/binding-input-text-deep-computed-dynamic/_config.js b/test/runtime/samples/binding-input-text-deep-computed-dynamic/_config.js index 6c91b6b955..eeecdb0ef8 100644 --- a/test/runtime/samples/binding-input-text-deep-computed-dynamic/_config.js +++ b/test/runtime/samples/binding-input-text-deep-computed-dynamic/_config.js @@ -18,7 +18,7 @@ export default {
{"foo":"a","bar":"b","baz":"c"}
`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); const event = new window.Event('input'); diff --git a/test/runtime/samples/binding-input-text-deep-computed/_config.js b/test/runtime/samples/binding-input-text-deep-computed/_config.js index c30bbe3069..a1ea2c34ad 100644 --- a/test/runtime/samples/binding-input-text-deep-computed/_config.js +++ b/test/runtime/samples/binding-input-text-deep-computed/_config.js @@ -16,7 +16,7 @@ export default {

hello alice

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, 'alice'); diff --git a/test/runtime/samples/binding-input-text-deep-contextual-computed-dynamic/_config.js b/test/runtime/samples/binding-input-text-deep-contextual-computed-dynamic/_config.js index 5371a14d5d..364195233d 100644 --- a/test/runtime/samples/binding-input-text-deep-contextual-computed-dynamic/_config.js +++ b/test/runtime/samples/binding-input-text-deep-contextual-computed-dynamic/_config.js @@ -20,7 +20,7 @@ export default {
{"foo":"a","bar":"b","baz":"c"}
`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); const event = new window.Event('input'); diff --git a/test/runtime/samples/binding-input-text-deep-contextual/_config.js b/test/runtime/samples/binding-input-text-deep-contextual/_config.js index 9d0e71c210..5b6b0d6577 100644 --- a/test/runtime/samples/binding-input-text-deep-contextual/_config.js +++ b/test/runtime/samples/binding-input-text-deep-contextual/_config.js @@ -19,7 +19,7 @@ export default {

three

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const inputs = [...target.querySelectorAll('input')]; assert.equal(inputs[0].value, 'one'); diff --git a/test/runtime/samples/binding-input-text-deep/_config.js b/test/runtime/samples/binding-input-text-deep/_config.js index 6f54f3c9dd..e6113510a7 100644 --- a/test/runtime/samples/binding-input-text-deep/_config.js +++ b/test/runtime/samples/binding-input-text-deep/_config.js @@ -15,7 +15,7 @@ export default {

hello alice

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, 'alice'); diff --git a/test/runtime/samples/binding-input-text/_config.js b/test/runtime/samples/binding-input-text/_config.js index 2e70626958..e7162b6153 100644 --- a/test/runtime/samples/binding-input-text/_config.js +++ b/test/runtime/samples/binding-input-text/_config.js @@ -13,7 +13,7 @@ export default {

hello world

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, 'world'); diff --git a/test/runtime/samples/binding-input-with-event/_config.js b/test/runtime/samples/binding-input-with-event/_config.js index 976bec326f..61cb90ed97 100644 --- a/test/runtime/samples/binding-input-with-event/_config.js +++ b/test/runtime/samples/binding-input-with-event/_config.js @@ -3,7 +3,7 @@ export default { a: 42 }, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, '42'); diff --git a/test/runtime/samples/binding-select-implicit-option-value/_config.js b/test/runtime/samples/binding-select-implicit-option-value/_config.js index fac9e2d1c6..cce1172f6a 100644 --- a/test/runtime/samples/binding-select-implicit-option-value/_config.js +++ b/test/runtime/samples/binding-select-implicit-option-value/_config.js @@ -24,7 +24,7 @@ export default {

foo: 2

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const select = target.querySelector('select'); const options = [...target.querySelectorAll('option')]; diff --git a/test/runtime/samples/binding-select-in-each-block/_config.js b/test/runtime/samples/binding-select-in-each-block/_config.js index 425e7fce46..e8ff7f9f07 100644 --- a/test/runtime/samples/binding-select-in-each-block/_config.js +++ b/test/runtime/samples/binding-select-in-each-block/_config.js @@ -17,7 +17,7 @@ export default { items: [{ value: 'hullo' }, { value: 'world' }] }, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const selects = [...target.querySelectorAll('select')]; const change = new window.Event('change'); diff --git a/test/runtime/samples/binding-select-in-yield/_config.js b/test/runtime/samples/binding-select-in-yield/_config.js index 4cfcf77311..6c206837e1 100644 --- a/test/runtime/samples/binding-select-in-yield/_config.js +++ b/test/runtime/samples/binding-select-in-yield/_config.js @@ -5,7 +5,7 @@ export default { letter: 'b' }, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { await component.modal.toggle(); assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/binding-select-initial-value-undefined/_config.js b/test/runtime/samples/binding-select-initial-value-undefined/_config.js index 2cd091aa21..821a8a3c64 100644 --- a/test/runtime/samples/binding-select-initial-value-undefined/_config.js +++ b/test/runtime/samples/binding-select-initial-value-undefined/_config.js @@ -13,7 +13,7 @@ export default {

selected: a

`, - test(assert, component, target) { + test({ assert, component, target }) { const select = target.querySelector('select'); const options = [...target.querySelectorAll('option')]; diff --git a/test/runtime/samples/binding-select-initial-value/_config.js b/test/runtime/samples/binding-select-initial-value/_config.js index 8a2baa879d..d98e5d2e1c 100644 --- a/test/runtime/samples/binding-select-initial-value/_config.js +++ b/test/runtime/samples/binding-select-initial-value/_config.js @@ -27,7 +27,7 @@ export default { selected: 'b', }, - test(assert, component, target) { + test({ assert, component, target }) { const select = target.querySelector('select'); const options = [...target.querySelectorAll('option')]; diff --git a/test/runtime/samples/binding-select-late/_config.js b/test/runtime/samples/binding-select-late/_config.js index 137370b777..98f53740af 100644 --- a/test/runtime/samples/binding-select-late/_config.js +++ b/test/runtime/samples/binding-select-late/_config.js @@ -9,7 +9,7 @@ export default {

selected: nothing

`, - test(assert, component, target) { + test({ assert, component, target }) { component.items = [ 'one', 'two', 'three' ]; component.selected = 'two'; diff --git a/test/runtime/samples/binding-select-multiple/_config.js b/test/runtime/samples/binding-select-multiple/_config.js index 58163aee4c..e1d21c0ea8 100644 --- a/test/runtime/samples/binding-select-multiple/_config.js +++ b/test/runtime/samples/binding-select-multiple/_config.js @@ -15,7 +15,7 @@ export default {

selected: two, three

`, - test ( assert, component, target, window ) { + test({ assert, component, target, window }) { const select = target.querySelector( 'select' ); const options = [ ...target.querySelectorAll( 'option' ) ]; diff --git a/test/runtime/samples/binding-select-optgroup/_config.js b/test/runtime/samples/binding-select-optgroup/_config.js index e62edfea9b..5927bce901 100644 --- a/test/runtime/samples/binding-select-optgroup/_config.js +++ b/test/runtime/samples/binding-select-optgroup/_config.js @@ -12,7 +12,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const select = target.querySelector('select'); const options = [...target.querySelectorAll('option')]; diff --git a/test/runtime/samples/binding-select/_config.js b/test/runtime/samples/binding-select/_config.js index 4c0ff9030f..6fd7e60b2a 100644 --- a/test/runtime/samples/binding-select/_config.js +++ b/test/runtime/samples/binding-select/_config.js @@ -27,7 +27,7 @@ export default { selected: 'one', }, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const select = target.querySelector('select'); const options = [...target.querySelectorAll('option')]; diff --git a/test/runtime/samples/binding-textarea/_config.js b/test/runtime/samples/binding-textarea/_config.js index d4eee0011c..c09256e059 100644 --- a/test/runtime/samples/binding-textarea/_config.js +++ b/test/runtime/samples/binding-textarea/_config.js @@ -13,7 +13,7 @@ export default {

some text

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const textarea = target.querySelector('textarea'); assert.equal(textarea.value, 'some text'); diff --git a/test/runtime/samples/bindings-before-onmount/_config.js b/test/runtime/samples/bindings-before-onmount/_config.js index d2852ae0e9..d21751c528 100644 --- a/test/runtime/samples/bindings-before-onmount/_config.js +++ b/test/runtime/samples/bindings-before-onmount/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component) { + test({ assert, component }) { assert.equal(component.one.snapshot, 2); } }; \ No newline at end of file diff --git a/test/runtime/samples/bindings-coalesced/_config.js b/test/runtime/samples/bindings-coalesced/_config.js index 8b95fecb2e..164d0b42e7 100644 --- a/test/runtime/samples/bindings-coalesced/_config.js +++ b/test/runtime/samples/bindings-coalesced/_config.js @@ -1,5 +1,5 @@ export default { - async test(assert, component) { + async test({ assert, component }) { const { foo, p } = component; const values = []; diff --git a/test/runtime/samples/class-helper/_config.js b/test/runtime/samples/class-helper/_config.js index 497f13a182..2c4606fbe8 100644 --- a/test/runtime/samples/class-helper/_config.js +++ b/test/runtime/samples/class-helper/_config.js @@ -5,7 +5,7 @@ export default { html: `
`, - test(assert, component, target, window) { + test({ assert, component, target, window }) { component.user = { active: false }; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/class-in-each/_config.js b/test/runtime/samples/class-in-each/_config.js index e5f96688e9..9ce2b5db8c 100644 --- a/test/runtime/samples/class-in-each/_config.js +++ b/test/runtime/samples/class-in-each/_config.js @@ -10,7 +10,7 @@ export default {
`, - test(assert, component, target) { + test({ assert, component, target }) { component.selected = 'three'; assert.htmlEqual(target.innerHTML, `
diff --git a/test/runtime/samples/class-shortcut-with-class/_config.js b/test/runtime/samples/class-shortcut-with-class/_config.js index 9593282cdc..fc1a00e8aa 100644 --- a/test/runtime/samples/class-shortcut-with-class/_config.js +++ b/test/runtime/samples/class-shortcut-with-class/_config.js @@ -7,7 +7,7 @@ export default { html: `
`, - test(assert, component, target, window) { + test({ assert, component, target, window }) { component.foo = false; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/class-shortcut/_config.js b/test/runtime/samples/class-shortcut/_config.js index dfc7458361..e0c8aec3a5 100644 --- a/test/runtime/samples/class-shortcut/_config.js +++ b/test/runtime/samples/class-shortcut/_config.js @@ -6,7 +6,7 @@ export default { html: `
`, - test(assert, component, target, window) { + test({ assert, component, target, window }) { component.foo = false; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/class-with-dynamic-attribute/_config.js b/test/runtime/samples/class-with-dynamic-attribute/_config.js index a384d5e17e..12c955c24d 100644 --- a/test/runtime/samples/class-with-dynamic-attribute/_config.js +++ b/test/runtime/samples/class-with-dynamic-attribute/_config.js @@ -5,7 +5,7 @@ export default { html: `
`, - test(assert, component, target, window) { + test({ assert, component, target, window }) { component.myClass = 'one'; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/component-binding-blowback-b/_config.js b/test/runtime/samples/component-binding-blowback-b/_config.js index 13d9c983c9..69af7917ca 100644 --- a/test/runtime/samples/component-binding-blowback-b/_config.js +++ b/test/runtime/samples/component-binding-blowback-b/_config.js @@ -14,7 +14,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); input.value = 4; diff --git a/test/runtime/samples/component-binding-blowback-c/_config.js b/test/runtime/samples/component-binding-blowback-c/_config.js index d08b15c7ac..b179f1c104 100644 --- a/test/runtime/samples/component-binding-blowback-c/_config.js +++ b/test/runtime/samples/component-binding-blowback-c/_config.js @@ -14,7 +14,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = target.querySelector('input'); input.value = 4; diff --git a/test/runtime/samples/component-binding-blowback/_config.js b/test/runtime/samples/component-binding-blowback/_config.js index a0a71e50de..964bb5547d 100644 --- a/test/runtime/samples/component-binding-blowback/_config.js +++ b/test/runtime/samples/component-binding-blowback/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component) { + test({ assert, component }) { let count = 0; component.$on('state', ({ changed }) => { diff --git a/test/runtime/samples/component-binding-computed/_config.js b/test/runtime/samples/component-binding-computed/_config.js index b7ea071903..b287014065 100644 --- a/test/runtime/samples/component-binding-computed/_config.js +++ b/test/runtime/samples/component-binding-computed/_config.js @@ -4,7 +4,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = new window.Event('input'); const inputs = target.querySelectorAll('input'); diff --git a/test/runtime/samples/component-binding-conditional-b/_config.js b/test/runtime/samples/component-binding-conditional-b/_config.js index cd90b9bd0d..9a48befe13 100644 --- a/test/runtime/samples/component-binding-conditional-b/_config.js +++ b/test/runtime/samples/component-binding-conditional-b/_config.js @@ -13,7 +13,7 @@ export default {

y: foo

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.x = false; assert.htmlEqual( target.innerHTML, ` diff --git a/test/runtime/samples/component-binding-conditional/_config.js b/test/runtime/samples/component-binding-conditional/_config.js index c2cc7b9f1e..65d8dea2a7 100644 --- a/test/runtime/samples/component-binding-conditional/_config.js +++ b/test/runtime/samples/component-binding-conditional/_config.js @@ -6,7 +6,7 @@ export default {

y: bar

`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = false; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/component-binding-deep-b/_config.js b/test/runtime/samples/component-binding-deep-b/_config.js index bd535d1643..f701a36fac 100644 --- a/test/runtime/samples/component-binding-deep-b/_config.js +++ b/test/runtime/samples/component-binding-deep-b/_config.js @@ -30,7 +30,7 @@ export default {
ONE SOURCE\nTWO SOURCE
`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('input'); const textarea = target.querySelector('textarea'); diff --git a/test/runtime/samples/component-binding-deep/_config.js b/test/runtime/samples/component-binding-deep/_config.js index e7fb3eed46..be5a2624ac 100644 --- a/test/runtime/samples/component-binding-deep/_config.js +++ b/test/runtime/samples/component-binding-deep/_config.js @@ -9,7 +9,7 @@ export default {

foo

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('input'); const input = target.querySelector('input'); diff --git a/test/runtime/samples/component-binding-each-nested/_config.js b/test/runtime/samples/component-binding-each-nested/_config.js index 777c259d7f..45644eec0f 100644 --- a/test/runtime/samples/component-binding-each-nested/_config.js +++ b/test/runtime/samples/component-binding-each-nested/_config.js @@ -11,7 +11,7 @@ export default {

foo, bar, baz

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('input'); const inputs = target.querySelectorAll('input'); diff --git a/test/runtime/samples/component-binding-each-object/_config.js b/test/runtime/samples/component-binding-each-object/_config.js index 10cd21bb5b..12b4094f2a 100644 --- a/test/runtime/samples/component-binding-each-object/_config.js +++ b/test/runtime/samples/component-binding-each-object/_config.js @@ -7,7 +7,7 @@ export default { foobarbaz `, - test(assert, component, target) { + test({ assert, component, target }) { component.a = [ { id: 'yep' }, { id: 'nope' } diff --git a/test/runtime/samples/component-binding-each/_config.js b/test/runtime/samples/component-binding-each/_config.js index 262ed9cdf4..ed49e194f4 100644 --- a/test/runtime/samples/component-binding-each/_config.js +++ b/test/runtime/samples/component-binding-each/_config.js @@ -11,7 +11,7 @@ export default {

foo, bar, baz

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const event = new window.MouseEvent('input'); const inputs = target.querySelectorAll('input'); diff --git a/test/runtime/samples/component-binding-infinite-loop/_config.js b/test/runtime/samples/component-binding-infinite-loop/_config.js index a4d3552766..92c5d5cd39 100644 --- a/test/runtime/samples/component-binding-infinite-loop/_config.js +++ b/test/runtime/samples/component-binding-infinite-loop/_config.js @@ -25,7 +25,7 @@ export default {

1

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const click = new window.MouseEvent('click'); const spans = target.querySelectorAll('span'); diff --git a/test/runtime/samples/component-binding-nested/_config.js b/test/runtime/samples/component-binding-nested/_config.js index c2056266d0..77a4d5c1ab 100644 --- a/test/runtime/samples/component-binding-nested/_config.js +++ b/test/runtime/samples/component-binding-nested/_config.js @@ -15,7 +15,7 @@ export default {

baz x: initial

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const click = new window.MouseEvent('click'); const buttons = [...target.querySelectorAll('button')]; diff --git a/test/runtime/samples/component-binding-parent-supercedes-child/_config.js b/test/runtime/samples/component-binding-parent-supercedes-child/_config.js index 41cdcce80a..4ba02c5913 100644 --- a/test/runtime/samples/component-binding-parent-supercedes-child/_config.js +++ b/test/runtime/samples/component-binding-parent-supercedes-child/_config.js @@ -4,7 +4,7 @@ export default {

count: 10

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const click = new window.MouseEvent('click'); const button = target.querySelector('button'); diff --git a/test/runtime/samples/component-binding-self-destroying/_config.js b/test/runtime/samples/component-binding-self-destroying/_config.js index 88b5c1d5e8..17cf23881e 100644 --- a/test/runtime/samples/component-binding-self-destroying/_config.js +++ b/test/runtime/samples/component-binding-self-destroying/_config.js @@ -7,7 +7,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const click = new window.MouseEvent('click'); await target.querySelector('button').dispatchEvent(click); diff --git a/test/runtime/samples/component-binding/_config.js b/test/runtime/samples/component-binding/_config.js index a220192081..42b0d578ce 100644 --- a/test/runtime/samples/component-binding/_config.js +++ b/test/runtime/samples/component-binding/_config.js @@ -6,7 +6,7 @@ export default {

count: 0

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const click = new window.MouseEvent('click'); const button = target.querySelector('button'); diff --git a/test/runtime/samples/component-data-dynamic-late/_config.js b/test/runtime/samples/component-data-dynamic-late/_config.js index df0b6be4f6..21a06791e2 100644 --- a/test/runtime/samples/component-data-dynamic-late/_config.js +++ b/test/runtime/samples/component-data-dynamic-late/_config.js @@ -1,5 +1,5 @@ export default { - test ( assert, component, target ) { + test({ assert, component, target }) { component.q = 42; component.foo = true; diff --git a/test/runtime/samples/component-data-dynamic-shorthand/_config.js b/test/runtime/samples/component-data-dynamic-shorthand/_config.js index f072cf62a5..80e8731dc5 100644 --- a/test/runtime/samples/component-data-dynamic-shorthand/_config.js +++ b/test/runtime/samples/component-data-dynamic-shorthand/_config.js @@ -5,7 +5,7 @@ export default { html: `

foo: 42

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.foo = 99; assert.equal( target.innerHTML, `

foo: 99

` ); diff --git a/test/runtime/samples/component-data-dynamic/_config.js b/test/runtime/samples/component-data-dynamic/_config.js index 8c9667d4b7..3a765c5b04 100644 --- a/test/runtime/samples/component-data-dynamic/_config.js +++ b/test/runtime/samples/component-data-dynamic/_config.js @@ -6,7 +6,7 @@ export default { go: { deeper: 'core' } }, html: `

foo: lol

\n

baz: 42 (number)

\n

qux: this is a piece of string

\n

quux: core

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.bar = 'wut'; component.x = 3; component.compound = 'rather boring'; diff --git a/test/runtime/samples/component-event-not-stale/_config.js b/test/runtime/samples/component-event-not-stale/_config.js index ca7a199406..912ea1f7d0 100644 --- a/test/runtime/samples/component-event-not-stale/_config.js +++ b/test/runtime/samples/component-event-not-stale/_config.js @@ -3,7 +3,7 @@ export default { value: 1, }, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const click = new window.MouseEvent('click'); diff --git a/test/runtime/samples/component-events-console/_config.js b/test/runtime/samples/component-events-console/_config.js index 407c3e7edf..b800749785 100644 --- a/test/runtime/samples/component-events-console/_config.js +++ b/test/runtime/samples/component-events-console/_config.js @@ -1,7 +1,7 @@ export default { html: '', - test(assert, component, target) { + test({ assert, component, target }) { const button = target.querySelector('button'); const messages = []; diff --git a/test/runtime/samples/component-events-data/_config.js b/test/runtime/samples/component-events-data/_config.js index 6949ac47a2..e4ef16c6f8 100644 --- a/test/runtime/samples/component-events-data/_config.js +++ b/test/runtime/samples/component-events-data/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target, window) { + test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const click = new window.MouseEvent('click'); diff --git a/test/runtime/samples/component-events-each/_config.js b/test/runtime/samples/component-events-each/_config.js index 6edf8b04f8..3165dda676 100644 --- a/test/runtime/samples/component-events-each/_config.js +++ b/test/runtime/samples/component-events-each/_config.js @@ -11,7 +11,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const clicks = []; diff --git a/test/runtime/samples/component-events/_config.js b/test/runtime/samples/component-events/_config.js index 6c39f0d143..26034edc99 100644 --- a/test/runtime/samples/component-events/_config.js +++ b/test/runtime/samples/component-events/_config.js @@ -5,7 +5,7 @@ export default { html: '

i am a widget

', - test(assert, component) { + test({ assert, component }) { let count = 0; component.$on('widgetTornDown', function() { diff --git a/test/runtime/samples/component-if-placement/_config.js b/test/runtime/samples/component-if-placement/_config.js index 22a06c415d..abeda9e9be 100644 --- a/test/runtime/samples/component-if-placement/_config.js +++ b/test/runtime/samples/component-if-placement/_config.js @@ -9,7 +9,7 @@ export default { After `, - test ( assert, component, target ) { + test({ assert, component, target }) { component.flag = false; assert.htmlEqual( target.innerHTML, ` Before diff --git a/test/runtime/samples/component-name-deconflicted/_config.js b/test/runtime/samples/component-name-deconflicted/_config.js index 4908d61df4..97ea2290b6 100644 --- a/test/runtime/samples/component-name-deconflicted/_config.js +++ b/test/runtime/samples/component-name-deconflicted/_config.js @@ -4,7 +4,7 @@ export default { 2 `, - test(assert, component, target) { + test({ assert, component, target }) { component.list = [3, 4]; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/component-nested-deep/_config.js b/test/runtime/samples/component-nested-deep/_config.js index 87a2c0b6a0..0114e79223 100644 --- a/test/runtime/samples/component-nested-deep/_config.js +++ b/test/runtime/samples/component-nested-deep/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component) { + test({ assert, component }) { component.l1.$destroy(); } }; diff --git a/test/runtime/samples/component-nested-deeper/_config.js b/test/runtime/samples/component-nested-deeper/_config.js index 5ada490210..86993b3e9a 100644 --- a/test/runtime/samples/component-nested-deeper/_config.js +++ b/test/runtime/samples/component-nested-deeper/_config.js @@ -3,7 +3,7 @@ export default { values: [1, 2, 3, 4] }, - test(assert, component) { + test({ assert, component }) { component.values = [2, 3]; } }; diff --git a/test/runtime/samples/component-ref/_config.js b/test/runtime/samples/component-ref/_config.js index 5cbb77cf74..1c0cca6dc5 100644 --- a/test/runtime/samples/component-ref/_config.js +++ b/test/runtime/samples/component-ref/_config.js @@ -1,7 +1,7 @@ export default { html: '

i am a widget

', - test(assert, component) { + test({ assert, component }) { const { widget } = component; assert.ok(widget.isWidget); } diff --git a/test/runtime/samples/component-slot-dynamic/_config.js b/test/runtime/samples/component-slot-dynamic/_config.js index 43fb9783ea..9e43ff15fe 100644 --- a/test/runtime/samples/component-slot-dynamic/_config.js +++ b/test/runtime/samples/component-slot-dynamic/_config.js @@ -3,7 +3,7 @@ export default {

override default slot

`, - test(assert, component) { + test({ assert, component }) { component.nested.foo = 'b'; } }; diff --git a/test/runtime/samples/component-slot-each-block/_config.js b/test/runtime/samples/component-slot-each-block/_config.js index 4c1c339a2b..d66f613bb4 100644 --- a/test/runtime/samples/component-slot-each-block/_config.js +++ b/test/runtime/samples/component-slot-each-block/_config.js @@ -10,7 +10,7 @@ export default { 3 `, - test(assert, component, target) { + test({ assert, component, target }) { component.things = [1, 2, 3, 4]; assert.htmlEqual(target.innerHTML, `
diff --git a/test/runtime/samples/component-slot-if-block-before-node/_config.js b/test/runtime/samples/component-slot-if-block-before-node/_config.js index c77e730922..dd0fa69981 100644 --- a/test/runtime/samples/component-slot-if-block-before-node/_config.js +++ b/test/runtime/samples/component-slot-if-block-before-node/_config.js @@ -4,7 +4,7 @@ export default {

unconditional

`, - test(assert, component, target) { + test({ assert, component, target }) { component.foo = true; assert.htmlEqual(target.innerHTML, `
diff --git a/test/runtime/samples/component-slot-if-block/_config.js b/test/runtime/samples/component-slot-if-block/_config.js index 1a2edef844..08bfef8999 100644 --- a/test/runtime/samples/component-slot-if-block/_config.js +++ b/test/runtime/samples/component-slot-if-block/_config.js @@ -4,7 +4,7 @@ export default {

unconditional

`, - test(assert, component, target) { + test({ assert, component, target }) { component.foo = true; assert.htmlEqual(target.innerHTML, `
diff --git a/test/runtime/samples/component-slot-if-else-block-before-node/_config.js b/test/runtime/samples/component-slot-if-else-block-before-node/_config.js index 5bca975f4e..8aaaa93193 100644 --- a/test/runtime/samples/component-slot-if-else-block-before-node/_config.js +++ b/test/runtime/samples/component-slot-if-else-block-before-node/_config.js @@ -3,7 +3,7 @@ export default {

disabled

unconditional

`, - test(assert, component, target) { + test({ assert, component, target }) { component.enabled = true; assert.htmlEqual(target.innerHTML, `

enabled

diff --git a/test/runtime/samples/component-yield-if/_config.js b/test/runtime/samples/component-yield-if/_config.js index 8b3dfca8f1..40fe2d5427 100644 --- a/test/runtime/samples/component-yield-if/_config.js +++ b/test/runtime/samples/component-yield-if/_config.js @@ -1,7 +1,7 @@ export default { html: '

', - test(assert, component, target) { + test({ assert, component, target }) { const { widget } = component; assert.equal(widget.show, false); diff --git a/test/runtime/samples/component-yield-multiple-in-each/_config.js b/test/runtime/samples/component-yield-multiple-in-each/_config.js index 4305fc6372..153a3a5601 100644 --- a/test/runtime/samples/component-yield-multiple-in-each/_config.js +++ b/test/runtime/samples/component-yield-multiple-in-each/_config.js @@ -5,7 +5,7 @@ export default {

Hello Charles

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.people = [ 'Alice', 'Charles', 'Bob' ]; assert.htmlEqual( target.innerHTML, ` diff --git a/test/runtime/samples/component-yield-multiple-in-if/_config.js b/test/runtime/samples/component-yield-multiple-in-if/_config.js index dd3316aa91..d5d630a84d 100644 --- a/test/runtime/samples/component-yield-multiple-in-if/_config.js +++ b/test/runtime/samples/component-yield-multiple-in-if/_config.js @@ -3,7 +3,7 @@ export default {

Hello

`, - test(assert, component, target) { + test({ assert, component, target }) { component.arriving = false; assert.htmlEqual(target.innerHTML, `

Goodbye

`); } diff --git a/test/runtime/samples/component-yield-nested-if/_config.js b/test/runtime/samples/component-yield-nested-if/_config.js index ef50a4783a..f16a7bb6bf 100644 --- a/test/runtime/samples/component-yield-nested-if/_config.js +++ b/test/runtime/samples/component-yield-nested-if/_config.js @@ -4,7 +4,7 @@ export default { Inner `, - test ( assert, component, target ) { + test({ assert, component, target }) { component.foo = false; assert.htmlEqual( target.innerHTML, `` ); diff --git a/test/runtime/samples/component-yield-parent/_config.js b/test/runtime/samples/component-yield-parent/_config.js index ce7a5eed02..1340893883 100644 --- a/test/runtime/samples/component-yield-parent/_config.js +++ b/test/runtime/samples/component-yield-parent/_config.js @@ -3,7 +3,7 @@ export default {

Hello

`, - test ( assert, component, target ) { + test({ assert, component, target }) { assert.equal( component.data, 'Hello' ); component.data = 'World'; diff --git a/test/runtime/samples/component-yield-placement/_config.js b/test/runtime/samples/component-yield-placement/_config.js index 5864b6ed67..eaa600b07d 100644 --- a/test/runtime/samples/component-yield-placement/_config.js +++ b/test/runtime/samples/component-yield-placement/_config.js @@ -12,7 +12,7 @@ export default {
`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const button = target.querySelector('button'); const click = new window.MouseEvent('click'); diff --git a/test/runtime/samples/component-yield-static/_config.js b/test/runtime/samples/component-yield-static/_config.js index 3594afff1a..351c604bdd 100644 --- a/test/runtime/samples/component-yield-static/_config.js +++ b/test/runtime/samples/component-yield-static/_config.js @@ -3,7 +3,7 @@ export default { Hello `, - test ( assert, component, target ) { + test({ assert, component, target }) { component.name = 'World'; assert.htmlEqual( target.innerHTML, ` Hello World diff --git a/test/runtime/samples/computed-function/_config.js b/test/runtime/samples/computed-function/_config.js index 5798a1e4da..b3c6a65dbb 100644 --- a/test/runtime/samples/computed-function/_config.js +++ b/test/runtime/samples/computed-function/_config.js @@ -1,7 +1,7 @@ export default { html: '

50

', - test(assert, component, target) { + test({ assert, component, target }) { component.range = [50, 100]; assert.htmlEqual(target.innerHTML, '

75

'); diff --git a/test/runtime/samples/computed-values-deconflicted/_config.js b/test/runtime/samples/computed-values-deconflicted/_config.js index d3366d72ab..c9ab700bd8 100644 --- a/test/runtime/samples/computed-values-deconflicted/_config.js +++ b/test/runtime/samples/computed-values-deconflicted/_config.js @@ -1,7 +1,7 @@ export default { html: 'waiting', - test(assert, component, target) { + test({ assert, component, target }) { component.x = 'ready'; assert.htmlEqual(target.innerHTML, ` ready diff --git a/test/runtime/samples/computed-values-function-dependency/_config.js b/test/runtime/samples/computed-values-function-dependency/_config.js index 3682aa7262..1636adeceb 100644 --- a/test/runtime/samples/computed-values-function-dependency/_config.js +++ b/test/runtime/samples/computed-values-function-dependency/_config.js @@ -1,7 +1,7 @@ export default { html: '

2

', - test(assert, component, target) { + test({ assert, component, target }) { component.y = 2; assert.equal(component.x(), 4); assert.equal(target.innerHTML, '

4

'); diff --git a/test/runtime/samples/computed-values/_config.js b/test/runtime/samples/computed-values/_config.js index 000ffa6b13..c86af2292d 100644 --- a/test/runtime/samples/computed-values/_config.js +++ b/test/runtime/samples/computed-values/_config.js @@ -4,7 +4,7 @@ export default {

3 * 3 = 9

`, - test(assert, component, target) { + test({ assert, component, target }) { component.a = 3; assert.equal(component.c(), 5); assert.equal(component.cSquared(), 25); diff --git a/test/runtime/samples/css-comments/_config.js b/test/runtime/samples/css-comments/_config.js index f6235d06a2..7f11f792c7 100644 --- a/test/runtime/samples/css-comments/_config.js +++ b/test/runtime/samples/css-comments/_config.js @@ -1,6 +1,6 @@ // JSDOM makes this test pass when it should fail. weird export default { - test ( assert, component, target, window ) { + test({ assert, component, target, window }) { const p = target.querySelector( 'p' ); assert.equal( window.getComputedStyle( p ).color, 'red' ); } diff --git a/test/runtime/samples/css-false/_config.js b/test/runtime/samples/css-false/_config.js index df9ef69c5e..2ade2acf83 100644 --- a/test/runtime/samples/css-false/_config.js +++ b/test/runtime/samples/css-false/_config.js @@ -3,7 +3,7 @@ export default { css: false }, - test ( assert, component, target, window ) { + test({ assert, component, target, window }) { const [ control, test ] = target.querySelectorAll( 'p' ); assert.equal( window.getComputedStyle( control ).color, '' ); diff --git a/test/runtime/samples/css-space-in-attribute/_config.js b/test/runtime/samples/css-space-in-attribute/_config.js index 3b52fb71d4..dc931217fc 100644 --- a/test/runtime/samples/css-space-in-attribute/_config.js +++ b/test/runtime/samples/css-space-in-attribute/_config.js @@ -1,5 +1,5 @@ export default { - test ( assert, component, target, window ) { + test({ assert, component, target, window }) { const [ control, test ] = target.querySelectorAll( 'p' ); assert.equal( window.getComputedStyle( control ).color, '' ); diff --git a/test/runtime/samples/css/_config.js b/test/runtime/samples/css/_config.js index 5b2e4a8224..c4500e7441 100644 --- a/test/runtime/samples/css/_config.js +++ b/test/runtime/samples/css/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target, window) { + test({ assert, component, target, window }) { const [control, test] = target.querySelectorAll('p'); assert.equal(window.getComputedStyle(control).color, ''); diff --git a/test/runtime/samples/custom-method/_config.js b/test/runtime/samples/custom-method/_config.js index ea852cebb3..b198731896 100644 --- a/test/runtime/samples/custom-method/_config.js +++ b/test/runtime/samples/custom-method/_config.js @@ -1,7 +1,7 @@ export default { html: '\n\n

0

', - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const button = target.querySelector('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/deconflict-builtins/_config.js b/test/runtime/samples/deconflict-builtins/_config.js index e4d2b21a88..c7053194ee 100644 --- a/test/runtime/samples/deconflict-builtins/_config.js +++ b/test/runtime/samples/deconflict-builtins/_config.js @@ -1,7 +1,7 @@ export default { html: `got`, - test(assert, component) { + test({ assert, component }) { assert.equal(component.foo, 'got'); } }; \ No newline at end of file diff --git a/test/runtime/samples/deconflict-elements-indexes/_config.js b/test/runtime/samples/deconflict-elements-indexes/_config.js index e5d91bda8b..b531603ac7 100644 --- a/test/runtime/samples/deconflict-elements-indexes/_config.js +++ b/test/runtime/samples/deconflict-elements-indexes/_config.js @@ -7,7 +7,7 @@ export default { preserveIdentifiers: true, - test(assert, component, target) { + test({ assert, component, target }) { const { tagList } = component; tagList.push('two'); component.tagList = tagList; diff --git a/test/runtime/samples/deconflict-non-helpers/_config.js b/test/runtime/samples/deconflict-non-helpers/_config.js index a642d3b6d4..167ddc279c 100644 --- a/test/runtime/samples/deconflict-non-helpers/_config.js +++ b/test/runtime/samples/deconflict-non-helpers/_config.js @@ -1,7 +1,7 @@ export default { html: `ABCD`, - test (assert, component) { + test({ assert, component }) { assert.equal(component.compute(), 'ABCD'); } }; diff --git a/test/runtime/samples/default-data-function/_config.js b/test/runtime/samples/default-data-function/_config.js index e10982ec90..3f091e438c 100644 --- a/test/runtime/samples/default-data-function/_config.js +++ b/test/runtime/samples/default-data-function/_config.js @@ -1,7 +1,7 @@ export default { html: '

Hello world!

', - test ( assert, component, target ) { + test({ assert, component, target }) { component.name = () => 'everybody'; assert.htmlEqual( target.innerHTML, '

Hello everybody!

' ); } diff --git a/test/runtime/samples/destroy-twice/_config.js b/test/runtime/samples/destroy-twice/_config.js index 174f244f05..041518d284 100644 --- a/test/runtime/samples/destroy-twice/_config.js +++ b/test/runtime/samples/destroy-twice/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component) { + test({ assert, component }) { component.$destroy(); component.$destroy(); } diff --git a/test/runtime/samples/destructuring/_config.js b/test/runtime/samples/destructuring/_config.js index a3bfd276c4..b8b138dfd0 100644 --- a/test/runtime/samples/destructuring/_config.js +++ b/test/runtime/samples/destructuring/_config.js @@ -5,7 +5,7 @@ export default { foo: 42 }, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const event = new window.MouseEvent('click'); const button = target.querySelector('button'); diff --git a/test/runtime/samples/dev-warning-destroy-twice/_config.js b/test/runtime/samples/dev-warning-destroy-twice/_config.js index b427081a2c..3acbd6447a 100644 --- a/test/runtime/samples/dev-warning-destroy-twice/_config.js +++ b/test/runtime/samples/dev-warning-destroy-twice/_config.js @@ -3,7 +3,7 @@ export default { dev: true }, - test(assert, component) { + test({ assert, component }) { const warn = console.warn; // eslint-disable-line no-console const warnings = []; diff --git a/test/runtime/samples/dev-warning-readonly-computed/_config.js b/test/runtime/samples/dev-warning-readonly-computed/_config.js index dd562de929..e8ffbaba3c 100644 --- a/test/runtime/samples/dev-warning-readonly-computed/_config.js +++ b/test/runtime/samples/dev-warning-readonly-computed/_config.js @@ -7,7 +7,7 @@ export default { a: 42 }, - test ( assert, component ) { + test({ assert, component }) { try { component.foo = 1; throw new Error( 'Expected an error' ); diff --git a/test/runtime/samples/dev-warning-readonly-window-binding/_config.js b/test/runtime/samples/dev-warning-readonly-window-binding/_config.js index 3736ca57c0..751cffde79 100644 --- a/test/runtime/samples/dev-warning-readonly-window-binding/_config.js +++ b/test/runtime/samples/dev-warning-readonly-window-binding/_config.js @@ -3,7 +3,7 @@ export default { dev: true }, - test(assert, component) { + test({ assert, component }) { try { component.width = 99; throw new Error('Expected an error'); diff --git a/test/runtime/samples/document-event/_config.js b/test/runtime/samples/document-event/_config.js index 8e3b90f99b..98e619af0f 100644 --- a/test/runtime/samples/document-event/_config.js +++ b/test/runtime/samples/document-event/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target, window) { + test({ assert, component, target, window }) { assert.deepEqual(component.events, []); const event1 = new window.Event('mouseenter'); diff --git a/test/runtime/samples/dynamic-component-bindings-recreated-b/_config.js b/test/runtime/samples/dynamic-component-bindings-recreated-b/_config.js index 3e1c61702b..0df87f06cd 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated-b/_config.js +++ b/test/runtime/samples/dynamic-component-bindings-recreated-b/_config.js @@ -8,7 +8,7 @@ export default {

green green

`, - test(assert, component, target) { + test({ assert, component, target }) { component.foo = undefined; component.x = false; diff --git a/test/runtime/samples/dynamic-component-bindings-recreated/_config.js b/test/runtime/samples/dynamic-component-bindings-recreated/_config.js index 1ac057ca3e..b57c49ed58 100644 --- a/test/runtime/samples/dynamic-component-bindings-recreated/_config.js +++ b/test/runtime/samples/dynamic-component-bindings-recreated/_config.js @@ -8,7 +8,7 @@ export default {

green one

`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = false; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/dynamic-component-bindings/_config.js b/test/runtime/samples/dynamic-component-bindings/_config.js index c6c093cbc6..9ef9a87b91 100644 --- a/test/runtime/samples/dynamic-component-bindings/_config.js +++ b/test/runtime/samples/dynamic-component-bindings/_config.js @@ -8,7 +8,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { let input = target.querySelector('input'); input.value = 'abc'; await input.dispatchEvent(new window.Event('input')); diff --git a/test/runtime/samples/dynamic-component-destroy-null/_config.js b/test/runtime/samples/dynamic-component-destroy-null/_config.js index 0ccea5de09..3c47aa5bae 100644 --- a/test/runtime/samples/dynamic-component-destroy-null/_config.js +++ b/test/runtime/samples/dynamic-component-destroy-null/_config.js @@ -3,7 +3,7 @@ export default { x: true }, - test(assert, component) { + test({ assert, component }) { component.x = false; } }; \ No newline at end of file diff --git a/test/runtime/samples/dynamic-component-events/_config.js b/test/runtime/samples/dynamic-component-events/_config.js index e48280c457..3c6bf370bb 100644 --- a/test/runtime/samples/dynamic-component-events/_config.js +++ b/test/runtime/samples/dynamic-component-events/_config.js @@ -7,7 +7,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const click = new window.MouseEvent('click'); target.querySelector('button').dispatchEvent(click); diff --git a/test/runtime/samples/dynamic-component-in-if/_config.js b/test/runtime/samples/dynamic-component-in-if/_config.js index 177fdeb33a..b481c229c4 100644 --- a/test/runtime/samples/dynamic-component-in-if/_config.js +++ b/test/runtime/samples/dynamic-component-in-if/_config.js @@ -3,7 +3,7 @@ export default {

Foo

`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = component.Bar; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/dynamic-component-inside-element/_config.js b/test/runtime/samples/dynamic-component-inside-element/_config.js index 13de488962..2e363f10da 100644 --- a/test/runtime/samples/dynamic-component-inside-element/_config.js +++ b/test/runtime/samples/dynamic-component-inside-element/_config.js @@ -7,7 +7,7 @@ export default {

true, therefore Foo

`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = false; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/dynamic-component-nulled-out/_config.js b/test/runtime/samples/dynamic-component-nulled-out/_config.js index 2ed4398725..e6ff6032bf 100644 --- a/test/runtime/samples/dynamic-component-nulled-out/_config.js +++ b/test/runtime/samples/dynamic-component-nulled-out/_config.js @@ -3,7 +3,7 @@ export default {

Foo

`, - test(assert, component, target) { + test({ assert, component, target }) { const Bar = component.Bar; component.Bar = null; diff --git a/test/runtime/samples/dynamic-component-ref/_config.js b/test/runtime/samples/dynamic-component-ref/_config.js index 18169165d8..6e3cabc435 100644 --- a/test/runtime/samples/dynamic-component-ref/_config.js +++ b/test/runtime/samples/dynamic-component-ref/_config.js @@ -1,7 +1,7 @@ export default { html: `Foo`, - test(assert, component) { + test({ assert, component }) { assert.ok(component.test); } }; diff --git a/test/runtime/samples/dynamic-component-slot/_config.js b/test/runtime/samples/dynamic-component-slot/_config.js index 466cff9c96..58f413e3c4 100644 --- a/test/runtime/samples/dynamic-component-slot/_config.js +++ b/test/runtime/samples/dynamic-component-slot/_config.js @@ -16,7 +16,7 @@ export default {
baz
`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = false; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/dynamic-component-update-existing-instance/_config.js b/test/runtime/samples/dynamic-component-update-existing-instance/_config.js index 47afa75d5e..5e3d836382 100644 --- a/test/runtime/samples/dynamic-component-update-existing-instance/_config.js +++ b/test/runtime/samples/dynamic-component-update-existing-instance/_config.js @@ -7,7 +7,7 @@ export default {

Foo 1

`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = 2; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/dynamic-component/_config.js b/test/runtime/samples/dynamic-component/_config.js index 1f12c5a6c1..fe7ce5d65f 100644 --- a/test/runtime/samples/dynamic-component/_config.js +++ b/test/runtime/samples/dynamic-component/_config.js @@ -7,7 +7,7 @@ export default {

true, therefore Foo

`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = false; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/each-block-array-literal/_config.js b/test/runtime/samples/each-block-array-literal/_config.js index c3154976da..288d1cd09f 100644 --- a/test/runtime/samples/each-block-array-literal/_config.js +++ b/test/runtime/samples/each-block-array-literal/_config.js @@ -4,7 +4,7 @@ export default { `, - test(assert, component, target) { + test({ assert, component, target }) { assert.htmlEqual(target.innerHTML,` diff --git a/test/runtime/samples/each-block-containing-component-in-if/_config.js b/test/runtime/samples/each-block-containing-component-in-if/_config.js index f749857930..9083742891 100644 --- a/test/runtime/samples/each-block-containing-component-in-if/_config.js +++ b/test/runtime/samples/each-block-containing-component-in-if/_config.js @@ -6,13 +6,13 @@ export default { html: `
`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.show = true; component.fields = [1, 2, 3]; assert.htmlEqual( target.innerHTML, `
- 1 + 1 2 3
@@ -22,7 +22,7 @@ export default { assert.htmlEqual( target.innerHTML, `
- 1 + 1 2 3 4 diff --git a/test/runtime/samples/each-block-containing-if/_config.js b/test/runtime/samples/each-block-containing-if/_config.js index d8e279a2ab..51284e060b 100644 --- a/test/runtime/samples/each-block-containing-if/_config.js +++ b/test/runtime/samples/each-block-containing-if/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target) { + test({ assert, component, target }) { const items = component.items; items.forEach(item => item.completed = false); diff --git a/test/runtime/samples/each-block-deconflict-name-context/_config.js b/test/runtime/samples/each-block-deconflict-name-context/_config.js index d6e9c168fe..c776a30928 100644 --- a/test/runtime/samples/each-block-deconflict-name-context/_config.js +++ b/test/runtime/samples/each-block-deconflict-name-context/_config.js @@ -17,7 +17,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const inputs = target.querySelectorAll('input'); inputs[1].value = 'w'; diff --git a/test/runtime/samples/each-block-destructured-array-sparse/_config.js b/test/runtime/samples/each-block-destructured-array-sparse/_config.js index b3a863696f..9805276600 100644 --- a/test/runtime/samples/each-block-destructured-array-sparse/_config.js +++ b/test/runtime/samples/each-block-destructured-array-sparse/_config.js @@ -11,7 +11,7 @@ export default {

wings

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.animalPawsEntries = [['foo', 'bar']]; assert.htmlEqual( target.innerHTML, `

bar

diff --git a/test/runtime/samples/each-block-destructured-array/_config.js b/test/runtime/samples/each-block-destructured-array/_config.js index 66be17fda8..432d8a3a78 100644 --- a/test/runtime/samples/each-block-destructured-array/_config.js +++ b/test/runtime/samples/each-block-destructured-array/_config.js @@ -11,7 +11,7 @@ export default {

eagle: wings

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.animalPawsEntries = [['foo', 'bar']]; assert.htmlEqual( target.innerHTML, `

foo: bar

diff --git a/test/runtime/samples/each-block-destructured-object-binding/_config.js b/test/runtime/samples/each-block-destructured-object-binding/_config.js index 704c742830..8b59a97034 100644 --- a/test/runtime/samples/each-block-destructured-object-binding/_config.js +++ b/test/runtime/samples/each-block-destructured-object-binding/_config.js @@ -15,7 +15,7 @@ export default {

Doctor Who

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const inputs = target.querySelectorAll('input'); inputs[1].value = 'Oz'; diff --git a/test/runtime/samples/each-block-destructured-object/_config.js b/test/runtime/samples/each-block-destructured-object/_config.js index 5d7b81435c..dc3943fffe 100644 --- a/test/runtime/samples/each-block-destructured-object/_config.js +++ b/test/runtime/samples/each-block-destructured-object/_config.js @@ -11,7 +11,7 @@ export default {

eagle: wings

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.animalPawsEntries = [{ animal: 'cow', pawType: 'hooves' }]; assert.htmlEqual( target.innerHTML, `

cow: hooves

diff --git a/test/runtime/samples/each-block-dynamic-else-static/_config.js b/test/runtime/samples/each-block-dynamic-else-static/_config.js index ab6437083a..d8f45b3cdb 100644 --- a/test/runtime/samples/each-block-dynamic-else-static/_config.js +++ b/test/runtime/samples/each-block-dynamic-else-static/_config.js @@ -9,7 +9,7 @@ export default {

capybara

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.animals = []; assert.htmlEqual( target.innerHTML, `

no animals

diff --git a/test/runtime/samples/each-block-else-starts-empty/_config.js b/test/runtime/samples/each-block-else-starts-empty/_config.js index d4d4b46f85..a20cedbbec 100644 --- a/test/runtime/samples/each-block-else-starts-empty/_config.js +++ b/test/runtime/samples/each-block-else-starts-empty/_config.js @@ -10,7 +10,7 @@ export default { after `, - test(assert, component, target) { + test({ assert, component, target }) { component.animals = ['wombat']; assert.htmlEqual(target.innerHTML, ` before diff --git a/test/runtime/samples/each-block-else/_config.js b/test/runtime/samples/each-block-else/_config.js index 22776d492f..a5bf722a80 100644 --- a/test/runtime/samples/each-block-else/_config.js +++ b/test/runtime/samples/each-block-else/_config.js @@ -12,7 +12,7 @@ export default { after `, - test(assert, component, target) { + test({ assert, component, target }) { component.animals = []; assert.htmlEqual(target.innerHTML, ` before diff --git a/test/runtime/samples/each-block-empty-outro/_config.js b/test/runtime/samples/each-block-empty-outro/_config.js index a40e276610..92eb7c66b1 100644 --- a/test/runtime/samples/each-block-empty-outro/_config.js +++ b/test/runtime/samples/each-block-empty-outro/_config.js @@ -10,7 +10,7 @@ export default {
`, - test(assert, component, target) { + test({ assert, component, target }) { component.visible = false; assert.htmlEqual(target.innerHTML, ``); diff --git a/test/runtime/samples/each-block-in-if-block/_config.js b/test/runtime/samples/each-block-in-if-block/_config.js index fb8f4820ad..eda3ca14a9 100644 --- a/test/runtime/samples/each-block-in-if-block/_config.js +++ b/test/runtime/samples/each-block-in-if-block/_config.js @@ -6,7 +6,7 @@ export default { html: '
Apple
Banana
Tomato
', - test ( assert, component, target ) { + test({ assert, component, target }) { component.dummy = true; assert.htmlEqual(target.innerHTML, '
Apple
Banana
Tomato
' ); } diff --git a/test/runtime/samples/each-block-index-only/_config.js b/test/runtime/samples/each-block-index-only/_config.js index 0d303795f6..80bbd69bd3 100644 --- a/test/runtime/samples/each-block-index-only/_config.js +++ b/test/runtime/samples/each-block-index-only/_config.js @@ -11,7 +11,7 @@ export default {

4

`, - test(assert, component, target) { + test({ assert, component, target }) { component.things = [0, 0, 0]; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/each-block-keyed-dynamic/_config.js b/test/runtime/samples/each-block-keyed-dynamic/_config.js index f0b2db7afd..9ebf60975c 100644 --- a/test/runtime/samples/each-block-keyed-dynamic/_config.js +++ b/test/runtime/samples/each-block-keyed-dynamic/_config.js @@ -11,7 +11,7 @@ export default {

drink milk

`, - test(assert, component, target) { + test({ assert, component, target }) { const [ p1, p2 ] = target.querySelectorAll('p'); component.todos = [ diff --git a/test/runtime/samples/each-block-keyed-non-prop/_config.js b/test/runtime/samples/each-block-keyed-non-prop/_config.js index 58323b4ff3..90e9a7f9c8 100644 --- a/test/runtime/samples/each-block-keyed-non-prop/_config.js +++ b/test/runtime/samples/each-block-keyed-non-prop/_config.js @@ -9,7 +9,7 @@ export default {

baz

`, - test(assert, component, target) { + test({ assert, component, target }) { const [p1, p2, p3] = target.querySelectorAll('p'); component.words = ['foo', 'baz']; diff --git a/test/runtime/samples/each-block-keyed-random-permute/_config.js b/test/runtime/samples/each-block-keyed-random-permute/_config.js index 06aefcf93f..80bf2d9115 100644 --- a/test/runtime/samples/each-block-keyed-random-permute/_config.js +++ b/test/runtime/samples/each-block-keyed-random-permute/_config.js @@ -24,7 +24,7 @@ export default { html: `(a)(b)(c)`, - test(assert, component, target) { + test({ assert, component, target }) { function test(sequence) { const previous = target.textContent; const expected = sequence.split('').map(x => `(${x})`).join(''); diff --git a/test/runtime/samples/each-block-keyed-siblings/_config.js b/test/runtime/samples/each-block-keyed-siblings/_config.js index 45495a0959..d87f8943da 100644 --- a/test/runtime/samples/each-block-keyed-siblings/_config.js +++ b/test/runtime/samples/each-block-keyed-siblings/_config.js @@ -9,7 +9,7 @@ export default {
2
`, - test(assert, component, target) { + test({ assert, component, target }) { component.ones = [{ text: '11' }]; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/each-block-keyed-unshift/_config.js b/test/runtime/samples/each-block-keyed-unshift/_config.js index 0e91932e22..1056c90c50 100644 --- a/test/runtime/samples/each-block-keyed-unshift/_config.js +++ b/test/runtime/samples/each-block-keyed-unshift/_config.js @@ -8,7 +8,7 @@ export default {

c

`, - test (assert, component, target) { + test({ assert, component, target }) { component.titles = [{ name: 'a' }, { name: 'b' }, { name: 'c' }]; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/each-block-keyed/_config.js b/test/runtime/samples/each-block-keyed/_config.js index 3813aebcb0..c756aa453b 100644 --- a/test/runtime/samples/each-block-keyed/_config.js +++ b/test/runtime/samples/each-block-keyed/_config.js @@ -11,7 +11,7 @@ export default {

2: implement client-side hydration

`, - test(assert, component, target) { + test({ assert, component, target }) { const [ p1, p2 ] = target.querySelectorAll('p'); component.todos = [ diff --git a/test/runtime/samples/each-block-random-permute/_config.js b/test/runtime/samples/each-block-random-permute/_config.js index e1dbfbdfbc..f81dac2ef4 100644 --- a/test/runtime/samples/each-block-random-permute/_config.js +++ b/test/runtime/samples/each-block-random-permute/_config.js @@ -23,7 +23,7 @@ export default { html: step.expected, - test ( assert, component, target ) { + test({ assert, component, target }) { for (let i = 0; i < 100; i++) { step = permute(); component.values = step.data; diff --git a/test/runtime/samples/each-block-static/_config.js b/test/runtime/samples/each-block-static/_config.js index c753d7709f..b62d262d9b 100644 --- a/test/runtime/samples/each-block-static/_config.js +++ b/test/runtime/samples/each-block-static/_config.js @@ -5,7 +5,7 @@ export default { html: ``, - test (assert, component, target) { + test({ assert, component, target }) { component.items = ['x']; assert.htmlEqual(target.innerHTML, `foo`); } diff --git a/test/runtime/samples/each-block-text-node/_config.js b/test/runtime/samples/each-block-text-node/_config.js index 3373aac441..4209bb3bfc 100644 --- a/test/runtime/samples/each-block-text-node/_config.js +++ b/test/runtime/samples/each-block-text-node/_config.js @@ -5,7 +5,7 @@ export default { html: '(alpaca)(baboon)(capybara)', - test ( assert, component, target ) { + test({ assert, component, target }) { component.animals = [ 'caribou', 'dogfish' ]; assert.htmlEqual( target.innerHTML, '(caribou)(dogfish)' ); component.animals = []; diff --git a/test/runtime/samples/each-block/_config.js b/test/runtime/samples/each-block/_config.js index 86bfdf23ce..6018ab67aa 100644 --- a/test/runtime/samples/each-block/_config.js +++ b/test/runtime/samples/each-block/_config.js @@ -9,7 +9,7 @@ export default {

capybara

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.animals = [ 'alpaca', 'baboon', 'caribou', 'dogfish' ]; assert.htmlEqual( target.innerHTML, `

alpaca

diff --git a/test/runtime/samples/each-blocks-nested-b/_config.js b/test/runtime/samples/each-blocks-nested-b/_config.js index b48070b284..c44899e6fb 100644 --- a/test/runtime/samples/each-blocks-nested-b/_config.js +++ b/test/runtime/samples/each-blocks-nested-b/_config.js @@ -29,7 +29,7 @@ export default { ] }, html: `

animals: aardvark

animals: buffalo

animals: chinchilla

countries: albania

countries: brazil

countries: china

people: alice

people: bob

people: carol

people: dave

`, - test ( assert, component, target ) { + test({ assert, component, target }) { // TODO } }; diff --git a/test/runtime/samples/each-blocks-nested/_config.js b/test/runtime/samples/each-blocks-nested/_config.js index fbce09ab8c..790ec9ced7 100644 --- a/test/runtime/samples/each-blocks-nested/_config.js +++ b/test/runtime/samples/each-blocks-nested/_config.js @@ -6,7 +6,7 @@ export default { html: `
a, 1
a, 2
a, 3
b, 1
b, 2
b, 3
c, 1
c, 2
c, 3
`, - test ( assert, component, target ) { + test({ assert, component, target }) { // TODO } }; diff --git a/test/runtime/samples/element-source-location/_config.js b/test/runtime/samples/element-source-location/_config.js index 0b4d16a903..b5834d6d92 100644 --- a/test/runtime/samples/element-source-location/_config.js +++ b/test/runtime/samples/element-source-location/_config.js @@ -5,7 +5,7 @@ export default { dev: true }, - test(assert, component, target) { + test({ assert, component, target }) { const h1 = target.querySelector('h1'); const p = target.querySelector('p'); diff --git a/test/runtime/samples/event-handler-console-log/_config.js b/test/runtime/samples/event-handler-console-log/_config.js index 605a7c1016..35e447c45b 100644 --- a/test/runtime/samples/event-handler-console-log/_config.js +++ b/test/runtime/samples/event-handler-console-log/_config.js @@ -7,7 +7,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const button = target.querySelector('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/event-handler-each-context/_config.js b/test/runtime/samples/event-handler-each-context/_config.js index 58815f11c4..d816b342bd 100644 --- a/test/runtime/samples/event-handler-each-context/_config.js +++ b/test/runtime/samples/event-handler-each-context/_config.js @@ -7,7 +7,7 @@ export default { bar: 'right' }, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const button = target.querySelector('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/event-handler-each-deconflicted/_config.js b/test/runtime/samples/event-handler-each-deconflicted/_config.js index 3af4c75387..6237f39451 100644 --- a/test/runtime/samples/event-handler-each-deconflicted/_config.js +++ b/test/runtime/samples/event-handler-each-deconflicted/_config.js @@ -11,7 +11,7 @@ export default {

clicked: neither

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/event-handler-each-this/_config.js b/test/runtime/samples/event-handler-each-this/_config.js index ed5d095d91..3ab2d5acdc 100644 --- a/test/runtime/samples/event-handler-each-this/_config.js +++ b/test/runtime/samples/event-handler-each-this/_config.js @@ -9,7 +9,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/event-handler-each/_config.js b/test/runtime/samples/event-handler-each/_config.js index c1d1d3c363..281f6d0d7c 100644 --- a/test/runtime/samples/event-handler-each/_config.js +++ b/test/runtime/samples/event-handler-each/_config.js @@ -15,7 +15,7 @@ export default {

selected: foo

`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/event-handler-event-methods/_config.js b/test/runtime/samples/event-handler-event-methods/_config.js index c49dd0652e..cc72e4bb0b 100644 --- a/test/runtime/samples/event-handler-event-methods/_config.js +++ b/test/runtime/samples/event-handler-event-methods/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target, window) { + test({ assert, component, target, window }) { const allow = target.querySelector('.allow-propagation'); const stop = target.querySelector('.stop-propagation'); diff --git a/test/runtime/samples/event-handler-hoisted/_config.js b/test/runtime/samples/event-handler-hoisted/_config.js index e8c33be3af..18d84aec6d 100644 --- a/test/runtime/samples/event-handler-hoisted/_config.js +++ b/test/runtime/samples/event-handler-hoisted/_config.js @@ -8,7 +8,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const button = target.querySelector('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/event-handler-removal/_config.js b/test/runtime/samples/event-handler-removal/_config.js index 5340196d9a..657ee04b09 100644 --- a/test/runtime/samples/event-handler-removal/_config.js +++ b/test/runtime/samples/event-handler-removal/_config.js @@ -3,7 +3,7 @@ export default { html: '', - test(assert, component) { + test({ assert, component }) { component.input.focus(); // this should NOT trigger blur event diff --git a/test/runtime/samples/event-handler-sanitize/_config.js b/test/runtime/samples/event-handler-sanitize/_config.js index cd89be5ac0..9f16b14093 100644 --- a/test/runtime/samples/event-handler-sanitize/_config.js +++ b/test/runtime/samples/event-handler-sanitize/_config.js @@ -3,7 +3,7 @@ export default {
toggle
`, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const div = target.querySelector('div'); const event = new window.MouseEvent('some-event'); diff --git a/test/runtime/samples/event-handler-shorthand-component/_config.js b/test/runtime/samples/event-handler-shorthand-component/_config.js index 3463b5c6f4..22704cf1c3 100644 --- a/test/runtime/samples/event-handler-shorthand-component/_config.js +++ b/test/runtime/samples/event-handler-shorthand-component/_config.js @@ -3,7 +3,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const button = target.querySelector('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/event-handler-shorthand-dynamic-component/_config.js b/test/runtime/samples/event-handler-shorthand-dynamic-component/_config.js index 3463b5c6f4..22704cf1c3 100644 --- a/test/runtime/samples/event-handler-shorthand-dynamic-component/_config.js +++ b/test/runtime/samples/event-handler-shorthand-dynamic-component/_config.js @@ -3,7 +3,7 @@ export default { `, - test(assert, component, target, window) { + test({ assert, component, target, window }) { const button = target.querySelector('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/event-handler-this-methods/_config.js b/test/runtime/samples/event-handler-this-methods/_config.js index 3692cab25b..8be56cf1a6 100644 --- a/test/runtime/samples/event-handler-this-methods/_config.js +++ b/test/runtime/samples/event-handler-this-methods/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target, window) { + test({ assert, component, target, window }) { // Click events don't focus elements in JSDOM – obviously they would // in real browsers. More realistically, you'd use this for e.g. // this.select(), but that's harder to test than this.focus() diff --git a/test/runtime/samples/event-handler/_config.js b/test/runtime/samples/event-handler/_config.js index 6114ef346b..3a5ac7a18b 100644 --- a/test/runtime/samples/event-handler/_config.js +++ b/test/runtime/samples/event-handler/_config.js @@ -3,7 +3,7 @@ export default { `, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const button = target.querySelector('button'); const event = new window.MouseEvent('click'); diff --git a/test/runtime/samples/flush-before-bindings/_config.js b/test/runtime/samples/flush-before-bindings/_config.js index 620b5d1455..7bb6ebfc15 100644 --- a/test/runtime/samples/flush-before-bindings/_config.js +++ b/test/runtime/samples/flush-before-bindings/_config.js @@ -10,7 +10,7 @@ export default {

second thing (true)

`, - test(assert, component) { + test({ assert, component }) { const visibleThings = component.visibleThings; assert.deepEqual(visibleThings, ['first thing', 'second thing']); diff --git a/test/runtime/samples/function-in-expression/_config.js b/test/runtime/samples/function-in-expression/_config.js index 94fd3fd648..f8ddbe26a5 100644 --- a/test/runtime/samples/function-in-expression/_config.js +++ b/test/runtime/samples/function-in-expression/_config.js @@ -5,7 +5,7 @@ export default { html: '1, 3, 5, 7, 9', - test(assert, component, target) { + test({ assert, component, target }) { component.numbers = [10, 11, 12, 13, 14, 15, 16]; assert.htmlEqual(target.innerHTML, `11, 13, 15`); diff --git a/test/runtime/samples/get-after-destroy/_config.js b/test/runtime/samples/get-after-destroy/_config.js index 3e38652a89..bf4d8e90ba 100644 --- a/test/runtime/samples/get-after-destroy/_config.js +++ b/test/runtime/samples/get-after-destroy/_config.js @@ -5,7 +5,7 @@ export default { html: `
1
`, - test(assert, component) { + test({ assert, component }) { component.$destroy(); const { foo } = component; assert.equal(foo, undefined); diff --git a/test/runtime/samples/globals-accessible-directly/_config.js b/test/runtime/samples/globals-accessible-directly/_config.js index 697252c202..ad010356c8 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) { + test({ assert, component, target }) { assert.htmlEqual(target.innerHTML, 'NaN'); } }; diff --git a/test/runtime/samples/globals-not-dereferenced/_config.js b/test/runtime/samples/globals-not-dereferenced/_config.js index 45347663bc..f10f44253b 100644 --- a/test/runtime/samples/globals-not-dereferenced/_config.js +++ b/test/runtime/samples/globals-not-dereferenced/_config.js @@ -5,7 +5,7 @@ export default { html: '5', - test ( assert, component, target ) { + test({ assert, component, target }) { component.x = 3; assert.htmlEqual( target.innerHTML, '3' ); } diff --git a/test/runtime/samples/globals-not-overwritten-by-bindings/_config.js b/test/runtime/samples/globals-not-overwritten-by-bindings/_config.js index 35f4037bec..d5f3def7f1 100644 --- a/test/runtime/samples/globals-not-overwritten-by-bindings/_config.js +++ b/test/runtime/samples/globals-not-overwritten-by-bindings/_config.js @@ -50,7 +50,7 @@ export default { }, }, - async test(assert, component, target, window) { + async test({ assert, component, target, window }) { const input = document.querySelectorAll('input[type="checkbox"]')[2]; const change = new window.Event('change'); diff --git a/test/runtime/samples/globals-shadowed-by-data/_config.js b/test/runtime/samples/globals-shadowed-by-data/_config.js index 2c14367228..1f268bdd80 100644 --- a/test/runtime/samples/globals-shadowed-by-data/_config.js +++ b/test/runtime/samples/globals-shadowed-by-data/_config.js @@ -5,7 +5,7 @@ export default { html: 'potato', - test ( assert, component, target ) { + test({ assert, component, target }) { component.x = 3; assert.htmlEqual( target.innerHTML, 'potato' ); } diff --git a/test/runtime/samples/globals-shadowed-by-helpers/_config.js b/test/runtime/samples/globals-shadowed-by-helpers/_config.js index 2c14367228..1f268bdd80 100644 --- a/test/runtime/samples/globals-shadowed-by-helpers/_config.js +++ b/test/runtime/samples/globals-shadowed-by-helpers/_config.js @@ -5,7 +5,7 @@ export default { html: 'potato', - test ( assert, component, target ) { + test({ assert, component, target }) { component.x = 3; assert.htmlEqual( target.innerHTML, 'potato' ); } diff --git a/test/runtime/samples/head-if-block/_config.js b/test/runtime/samples/head-if-block/_config.js index 22be0af6d0..26e1457be7 100644 --- a/test/runtime/samples/head-if-block/_config.js +++ b/test/runtime/samples/head-if-block/_config.js @@ -3,7 +3,7 @@ export default { condition: false }, - test(assert, component, target, window) { + test({ assert, component, target, window }) { assert.equal(window.document.title, ''); component.condition = true; diff --git a/test/runtime/samples/head-title-dynamic/_config.js b/test/runtime/samples/head-title-dynamic/_config.js index bfe5cd3d96..ddb04bf0a3 100644 --- a/test/runtime/samples/head-title-dynamic/_config.js +++ b/test/runtime/samples/head-title-dynamic/_config.js @@ -3,7 +3,7 @@ export default { adjective: 'custom' }, - test(assert, component, target, window) { + test({ assert, component, target, window }) { assert.equal(window.document.title, 'a custom title'); component.adjective = 'different'; diff --git a/test/runtime/samples/head-title-static/_config.js b/test/runtime/samples/head-title-static/_config.js index 3757effa54..e6d5d9aaff 100644 --- a/test/runtime/samples/head-title-static/_config.js +++ b/test/runtime/samples/head-title-static/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target, window) { + test({ assert, component, target, window }) { assert.equal(window.document.title, 'changed'); } }; \ No newline at end of file diff --git a/test/runtime/samples/hello-world/_config.js b/test/runtime/samples/hello-world/_config.js index 506c712548..d65d690011 100644 --- a/test/runtime/samples/hello-world/_config.js +++ b/test/runtime/samples/hello-world/_config.js @@ -5,7 +5,7 @@ export default { html: '

Hello world!

', - test (assert, component, target) { + test({ assert, component, target }) { component.name = 'everybody'; assert.htmlEqual(target.innerHTML, '

Hello everybody!

'); diff --git a/test/runtime/samples/if-block-component-without-outro/_config.js b/test/runtime/samples/if-block-component-without-outro/_config.js index 00a5818cdb..8106081c7c 100644 --- a/test/runtime/samples/if-block-component-without-outro/_config.js +++ b/test/runtime/samples/if-block-component-without-outro/_config.js @@ -5,7 +5,7 @@ export default { html: '
A wild component appears
', - test(assert, component, target) { + test({ assert, component, target }) { component.foo = false; assert.htmlEqual(target.innerHTML, ''); }, diff --git a/test/runtime/samples/if-block-else-partial-outro/_config.js b/test/runtime/samples/if-block-else-partial-outro/_config.js index 067c09ebf9..a358680edf 100644 --- a/test/runtime/samples/if-block-else-partial-outro/_config.js +++ b/test/runtime/samples/if-block-else-partial-outro/_config.js @@ -8,7 +8,7 @@ export default { 1 `, - test(assert, component, target) { + test({ assert, component, target }) { component.x = 2; assert.htmlEqual(target.innerHTML, ` 2 diff --git a/test/runtime/samples/if-block-else/_config.js b/test/runtime/samples/if-block-else/_config.js index bf39b655c3..5a60973e0d 100644 --- a/test/runtime/samples/if-block-else/_config.js +++ b/test/runtime/samples/if-block-else/_config.js @@ -9,7 +9,7 @@ export default {

not bar

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.foo = false; assert.htmlEqual( target.innerHTML, `

not foo

diff --git a/test/runtime/samples/if-block-elseif-no-else/_config.js b/test/runtime/samples/if-block-elseif-no-else/_config.js index 3dc70af2cf..ec3379737a 100644 --- a/test/runtime/samples/if-block-elseif-no-else/_config.js +++ b/test/runtime/samples/if-block-elseif-no-else/_config.js @@ -7,7 +7,7 @@ export default {

x is greater than 10

`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = 4; assert.htmlEqual(target.innerHTML, `

x is less than 5

diff --git a/test/runtime/samples/if-block-elseif-text/_config.js b/test/runtime/samples/if-block-elseif-text/_config.js index 885a052b0e..d5031ffcf4 100644 --- a/test/runtime/samples/if-block-elseif-text/_config.js +++ b/test/runtime/samples/if-block-elseif-text/_config.js @@ -7,7 +7,7 @@ export default { before-if-after `, - test (assert, component, target) { + test({ assert, component, target }) { component.x = 4; assert.htmlEqual(target.innerHTML, ` before-elseif-after diff --git a/test/runtime/samples/if-block-elseif/_config.js b/test/runtime/samples/if-block-elseif/_config.js index 057e835a3c..d09e88a2ef 100644 --- a/test/runtime/samples/if-block-elseif/_config.js +++ b/test/runtime/samples/if-block-elseif/_config.js @@ -7,7 +7,7 @@ export default {

x is greater than 10

`, - test(assert, component, target) { + test({ assert, component, target }) { component.x = 4; assert.htmlEqual(target.innerHTML, `

x is less than 5

diff --git a/test/runtime/samples/if-block-first/_config.js b/test/runtime/samples/if-block-first/_config.js index cb4b56a0cb..01cf37dfb3 100644 --- a/test/runtime/samples/if-block-first/_config.js +++ b/test/runtime/samples/if-block-first/_config.js @@ -5,7 +5,7 @@ export default { html: '
before me
', - test ( assert, component, target ) { + test({ assert, component, target }) { component.visible = true; assert.htmlEqual(target.innerHTML, '
i am visible
before me
' ); } diff --git a/test/runtime/samples/if-block-no-outro-else-with-outro/_config.js b/test/runtime/samples/if-block-no-outro-else-with-outro/_config.js index 66b1bb6cd7..b2e71ea01f 100644 --- a/test/runtime/samples/if-block-no-outro-else-with-outro/_config.js +++ b/test/runtime/samples/if-block-no-outro-else-with-outro/_config.js @@ -11,7 +11,7 @@ export default { `, - test(assert, component, target) { + test({ assert, component, target }) { component.x = 'y'; assert.htmlEqual(target.innerHTML, `
A wild component appears
diff --git a/test/runtime/samples/if-block-or/_config.js b/test/runtime/samples/if-block-or/_config.js index d444d9c0e7..bd1b7df4f4 100644 --- a/test/runtime/samples/if-block-or/_config.js +++ b/test/runtime/samples/if-block-or/_config.js @@ -6,7 +6,7 @@ export default { html: '

i am visible

', - test ( assert, component, target ) { + test({ assert, component, target }) { component.a = false; assert.htmlEqual( target.innerHTML, '' ); component.b = true; diff --git a/test/runtime/samples/if-block-outro-nested-else/_config.js b/test/runtime/samples/if-block-outro-nested-else/_config.js index d23e448e68..226116fe13 100644 --- a/test/runtime/samples/if-block-outro-nested-else/_config.js +++ b/test/runtime/samples/if-block-outro-nested-else/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target) { + test({ assert, component, target }) { // Would cause "TypeError: Cannot read property 'o' of undefined" component.foo = false; } diff --git a/test/runtime/samples/if-block-widget/_config.js b/test/runtime/samples/if-block-widget/_config.js index 440700d98d..44dc32a91c 100644 --- a/test/runtime/samples/if-block-widget/_config.js +++ b/test/runtime/samples/if-block-widget/_config.js @@ -9,7 +9,7 @@ export default { after `, - test ( assert, component, target ) { + test({ assert, component, target }) { component.visible = false; assert.htmlEqual( target.innerHTML, ` before diff --git a/test/runtime/samples/if-block/_config.js b/test/runtime/samples/if-block/_config.js index 5fd133f7d9..a94d9aa35a 100644 --- a/test/runtime/samples/if-block/_config.js +++ b/test/runtime/samples/if-block/_config.js @@ -5,7 +5,7 @@ export default { html: '

i am visible

', - test ( assert, component, target ) { + test({ assert, component, target }) { component.visible = false; assert.htmlEqual( target.innerHTML, '' ); component.visible = true; diff --git a/test/runtime/samples/ignore-unchanged-attribute-compound/_config.js b/test/runtime/samples/ignore-unchanged-attribute-compound/_config.js index a284e32434..741d5bc780 100644 --- a/test/runtime/samples/ignore-unchanged-attribute-compound/_config.js +++ b/test/runtime/samples/ignore-unchanged-attribute-compound/_config.js @@ -11,7 +11,7 @@ export default {

`, - test(assert, component) { + test({ assert, component }) { counter.count = 0; component.x = 3; diff --git a/test/runtime/samples/ignore-unchanged-attribute/_config.js b/test/runtime/samples/ignore-unchanged-attribute/_config.js index 46278acc20..c1f8b23b98 100644 --- a/test/runtime/samples/ignore-unchanged-attribute/_config.js +++ b/test/runtime/samples/ignore-unchanged-attribute/_config.js @@ -11,7 +11,7 @@ export default {

`, - test(assert, component) { + test({ assert, component }) { counter.count = 0; component.x = 3; diff --git a/test/runtime/samples/ignore-unchanged-raw/_config.js b/test/runtime/samples/ignore-unchanged-raw/_config.js index ba19b7c33f..15e9430c30 100644 --- a/test/runtime/samples/ignore-unchanged-raw/_config.js +++ b/test/runtime/samples/ignore-unchanged-raw/_config.js @@ -11,7 +11,7 @@ export default {

2

`, - test(assert, component) { + test({ assert, component }) { counter.count = 0; component.x = 3; diff --git a/test/runtime/samples/ignore-unchanged-tag/_config.js b/test/runtime/samples/ignore-unchanged-tag/_config.js index ba19b7c33f..15e9430c30 100644 --- a/test/runtime/samples/ignore-unchanged-tag/_config.js +++ b/test/runtime/samples/ignore-unchanged-tag/_config.js @@ -11,7 +11,7 @@ export default {

2

`, - test(assert, component) { + test({ assert, component }) { counter.count = 0; component.x = 3; diff --git a/test/runtime/samples/immutable-nested/_config.js b/test/runtime/samples/immutable-nested/_config.js index c0e280a72a..c45574e78e 100644 --- a/test/runtime/samples/immutable-nested/_config.js +++ b/test/runtime/samples/immutable-nested/_config.js @@ -2,7 +2,7 @@ export default { immutable: true, html: `

Called 1 times.

`, - test(assert, component, target, window) { + test({ assert, component, target, window }) { var nested = component.nested; assert.htmlEqual(target.innerHTML, `

Called 1 times.

`); diff --git a/test/runtime/samples/immutable-root/_config.js b/test/runtime/samples/immutable-root/_config.js index 2b99876930..174dbb808b 100644 --- a/test/runtime/samples/immutable-root/_config.js +++ b/test/runtime/samples/immutable-root/_config.js @@ -2,7 +2,7 @@ export default { immutable: true, html: `

Called 0 times.

`, - test(assert, component, target, window) { + test({ assert, component, target, window }) { component.$on('state', ({ changed }) => { if (changed.foo) { component.count = component.count + 1; diff --git a/test/runtime/samples/inline-expressions/_config.js b/test/runtime/samples/inline-expressions/_config.js index a1612c69db..50cec30468 100644 --- a/test/runtime/samples/inline-expressions/_config.js +++ b/test/runtime/samples/inline-expressions/_config.js @@ -4,7 +4,7 @@ export default { b: 2 }, html: '

1 + 2 = 3

', - test ( assert, component, target ) { + test({ assert, component, target }) { component.a = 3; component.b = 4; assert.equal( target.innerHTML, '

3 + 4 = 7

' ); diff --git a/test/runtime/samples/lifecycle-events/_config.js b/test/runtime/samples/lifecycle-events/_config.js index 051f4fc6ee..77290d513b 100644 --- a/test/runtime/samples/lifecycle-events/_config.js +++ b/test/runtime/samples/lifecycle-events/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component) { + test({ assert, component }) { assert.deepEqual(component.events, ['mount']); component.$destroy(); assert.deepEqual(component.events, ['mount', 'destroy']); diff --git a/test/runtime/samples/lifecycle-render-order/_config.js b/test/runtime/samples/lifecycle-render-order/_config.js index e2cee9046e..addff923c1 100644 --- a/test/runtime/samples/lifecycle-render-order/_config.js +++ b/test/runtime/samples/lifecycle-render-order/_config.js @@ -3,7 +3,7 @@ import order from './order.js'; export default { skip_if_ssr: true, - test(assert, component, target) { + test({ assert, component, target }) { assert.deepEqual(order, [ 'beforeRender', 'render', diff --git a/test/runtime/samples/names-deconflicted/_config.js b/test/runtime/samples/names-deconflicted/_config.js index cc3eba7f47..07b337a1e8 100644 --- a/test/runtime/samples/names-deconflicted/_config.js +++ b/test/runtime/samples/names-deconflicted/_config.js @@ -1,7 +1,7 @@ export default { html: `

1: foo

2: bar

3: baz

`, - test ( assert, component, target ) { + test({ assert, component, target }) { component.widgets = [ { name: 'bish' }, { name: 'bosh' } diff --git a/test/runtime/samples/nbsp/_config.js b/test/runtime/samples/nbsp/_config.js index c09c14e7c4..6322725f98 100644 --- a/test/runtime/samples/nbsp/_config.js +++ b/test/runtime/samples/nbsp/_config.js @@ -1,7 +1,7 @@ export default { html: ` `, - test ( assert, component, target ) { + test({ assert, component, target }) { const text = target.querySelector( 'span' ).textContent; assert.equal( text.charCodeAt( 0 ), 160 ); } diff --git a/test/runtime/samples/nested-transition-detach-each/_config.js b/test/runtime/samples/nested-transition-detach-each/_config.js index 28e8715c47..e17fe1bc4d 100644 --- a/test/runtime/samples/nested-transition-detach-each/_config.js +++ b/test/runtime/samples/nested-transition-detach-each/_config.js @@ -11,7 +11,7 @@ export default { dev: true }, - test(assert, component, target, window, raf) { + test({ assert, component, target, window, raf }) { component.visible = true; assert.htmlEqual(target.innerHTML, `
diff --git a/test/runtime/samples/nested-transition-detach-if-false/_config.js b/test/runtime/samples/nested-transition-detach-if-false/_config.js index 91ed845b43..b76eb5cd32 100644 --- a/test/runtime/samples/nested-transition-detach-if-false/_config.js +++ b/test/runtime/samples/nested-transition-detach-if-false/_config.js @@ -13,7 +13,7 @@ export default { `, - test(assert, component, target, window, raf) { + test({ assert, component, target, window, raf }) { component.folder.open = false; assert.htmlEqual(target.innerHTML, `
  • diff --git a/test/runtime/samples/nested-transition-if-block-not-remounted/_config.js b/test/runtime/samples/nested-transition-if-block-not-remounted/_config.js index dd87b6cb4e..6696389e6e 100644 --- a/test/runtime/samples/nested-transition-if-block-not-remounted/_config.js +++ b/test/runtime/samples/nested-transition-if-block-not-remounted/_config.js @@ -11,7 +11,7 @@ export default {
  • `, - test(assert, component, target, window, raf) { + test({ assert, component, target, window, raf }) { const div = target.querySelector('div'); const { appendChild, insertBefore } = div; diff --git a/test/runtime/samples/ondestroy-before-cleanup/_config.js b/test/runtime/samples/ondestroy-before-cleanup/_config.js index 07f214d4a2..78fec33169 100644 --- a/test/runtime/samples/ondestroy-before-cleanup/_config.js +++ b/test/runtime/samples/ondestroy-before-cleanup/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component, target) { + test({ assert, component, target }) { const top = component.top; const div = target.querySelector('div'); diff --git a/test/runtime/samples/onmount-fires-when-ready/_config.js b/test/runtime/samples/onmount-fires-when-ready/_config.js index 17e578f2f4..de095cbdb7 100644 --- a/test/runtime/samples/onmount-fires-when-ready/_config.js +++ b/test/runtime/samples/onmount-fires-when-ready/_config.js @@ -3,7 +3,7 @@ export default { html: `

    true

    `, - test(assert, component, target) { + test({ assert, component, target }) { component.foo = true; assert.htmlEqual(target.innerHTML, `

    true

    \n

    true

    `); } diff --git a/test/runtime/samples/onmount-sibling-order/_config.js b/test/runtime/samples/onmount-sibling-order/_config.js index f8d8afe68b..bf8a52b2f6 100644 --- a/test/runtime/samples/onmount-sibling-order/_config.js +++ b/test/runtime/samples/onmount-sibling-order/_config.js @@ -4,7 +4,7 @@ export default { // TODO is sibling onMount order important? skip: true, - test(assert) { + test({ assert }) { assert.deepEqual(result, [ 'onMount foo', 'onMount bar' diff --git a/test/runtime/samples/option-without-select/_config.js b/test/runtime/samples/option-without-select/_config.js index 84b1da2230..48303961ad 100644 --- a/test/runtime/samples/option-without-select/_config.js +++ b/test/runtime/samples/option-without-select/_config.js @@ -5,7 +5,7 @@ export default { html: ``, - test(assert, component, target) { + test({ assert, component, target }) { component.foo = 'goodbye'; assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/preload/_config.js b/test/runtime/samples/preload/_config.js index bfc7f6ee7c..105c7b9fa9 100644 --- a/test/runtime/samples/preload/_config.js +++ b/test/runtime/samples/preload/_config.js @@ -1,5 +1,5 @@ export default { - test(assert, component) { + test({ assert, component }) { const Component = component.constructor; assert.deepEqual(Component.preload({ foo: 1 }), { bar: 2 }); } diff --git a/test/runtime/samples/preload/main.html b/test/runtime/samples/preload/main.html index b46e2a103e..f7f2adff18 100644 --- a/test/runtime/samples/preload/main.html +++ b/test/runtime/samples/preload/main.html @@ -1,4 +1,4 @@ -