mirror of https://github.com/sveltejs/svelte
parent
5f51856f86
commit
837d248257
@ -1,10 +1,24 @@
|
|||||||
export default {
|
export default {
|
||||||
nestedTransitions: true,
|
nestedTransitions: true,
|
||||||
|
|
||||||
html: '<div>A wild component appears</div><p>x</p><input type="text">',
|
html: `
|
||||||
|
<div>A wild component appears</div>
|
||||||
|
<p>x</p>
|
||||||
|
<input type=text>
|
||||||
|
`,
|
||||||
|
|
||||||
|
ssrHtml: `
|
||||||
|
<div>A wild component appears</div>
|
||||||
|
<p>x</p>
|
||||||
|
<input type=text value=x>
|
||||||
|
`,
|
||||||
|
|
||||||
test(assert, component, target) {
|
test(assert, component, target) {
|
||||||
component.set({ x: 'y' });
|
component.set({ x: 'y' });
|
||||||
assert.htmlEqual(target.innerHTML, '<div>A wild component appears</div><p>y</p><input type="text">');
|
assert.htmlEqual(target.innerHTML, `
|
||||||
|
<div>A wild component appears</div>
|
||||||
|
<p>y</p>
|
||||||
|
<input type=text>
|
||||||
|
`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
<input value='bar'>
|
@ -0,0 +1,8 @@
|
|||||||
|
<input bind:value=foo >
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return { foo: 'bar' };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue