mirror of https://github.com/sveltejs/svelte
parent
ef2a4b463a
commit
151cc46574
@ -0,0 +1,4 @@
|
||||
<div>
|
||||
<slot />
|
||||
<div {...$$props}></div>
|
||||
</div>
|
@ -0,0 +1,19 @@
|
||||
export default {
|
||||
html: `
|
||||
<div>
|
||||
<input />
|
||||
<div class="foo"></div>
|
||||
</div>
|
||||
`,
|
||||
|
||||
async test({ assert, component, target }) {
|
||||
component.value = 'foo';
|
||||
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<div>
|
||||
<input />
|
||||
<div class="foo"></div>
|
||||
</div>
|
||||
`);
|
||||
}
|
||||
};
|
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
import Nested from './Nested.svelte';
|
||||
export let value = '';
|
||||
</script>
|
||||
|
||||
<Nested class="foo">
|
||||
<input bind:value />
|
||||
</Nested>
|
Loading…
Reference in new issue