mirror of https://github.com/sveltejs/svelte
24 lines
350 B
24 lines
350 B
export default {
|
|
html: `
|
|
<p>foo</p>
|
|
<input>
|
|
`,
|
|
|
|
ssrHtml: `
|
|
<p>foo</p>
|
|
<input value=foo>
|
|
`,
|
|
|
|
async test({ assert, target, window }) {
|
|
const input = target.querySelector('input');
|
|
|
|
input.value = 'bar';
|
|
await input.dispatchEvent(new window.Event('input'));
|
|
|
|
assert.htmlEqual(target.innerHTML, `
|
|
<p>bar</p>
|
|
<input>
|
|
`);
|
|
}
|
|
};
|