Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
originalParagraphGetBoundingClientRect;
},

async test({ assert, component, target, raf }) {
async test({ assert, component, raf }) {
// switch tag and things at the same time
await component.update('p', [
{ id: 5, name: 'e' },
Expand Down
8 changes: 4 additions & 4 deletions test/runtime/samples/if-block-else-update/_config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
async test({ assert, component, target, window }) {
async test({ assert, target, window }) {
const [btn1, btn2] = target.querySelectorAll('button');

const clickEvent = new window.MouseEvent('click');

await btn2.dispatchEvent(clickEvent);
Expand All @@ -23,7 +23,7 @@ export default {
<hr>
foo!
`);

await btn2.dispatchEvent(clickEvent);
assert.htmlEqual(target.innerHTML, `
<button>Toggle foo</button>
Expand All @@ -33,7 +33,7 @@ export default {
<hr>
foo!
`);

await btn1.dispatchEvent(clickEvent);
assert.htmlEqual(target.innerHTML, `
<button>Toggle foo</button>
Expand Down
2 changes: 1 addition & 1 deletion test/runtime/samples/inline-style/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
<div style="color: red;"></div>
`,

test({ assert, component, target, window }) {
test({ assert, target, window }) {
const div = target.querySelector('div');

const styles = window.getComputedStyle(div);
Expand Down
2 changes: 1 addition & 1 deletion test/runtime/samples/key-block-component-slot/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
props: {
logs
},
async test({ assert, component, target, raf }) {
async test({ assert, target }) {
assert.deepEqual(logs, ['mount']);

const button = target.querySelector('button');
Expand Down