mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
failing test for #3354
This commit is contained in:
parent
5266b53739
commit
eda4f90cde
9
test/runtime/samples/component-slot-let-f/A.svelte
Normal file
9
test/runtime/samples/component-slot-let-f/A.svelte
Normal file
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import B from './B.svelte';
|
||||
export let x;
|
||||
</script>
|
||||
|
||||
<B {x} let:reflected>
|
||||
<span>{reflected}</span>
|
||||
<slot {reflected} />
|
||||
</B>
|
5
test/runtime/samples/component-slot-let-f/B.svelte
Normal file
5
test/runtime/samples/component-slot-let-f/B.svelte
Normal file
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
export let x;
|
||||
</script>
|
||||
|
||||
<slot reflected={x}/>
|
15
test/runtime/samples/component-slot-let-f/_config.js
Normal file
15
test/runtime/samples/component-slot-let-f/_config.js
Normal file
@ -0,0 +1,15 @@
|
||||
export default {
|
||||
html: `
|
||||
<span>1</span>
|
||||
<span>1</span>
|
||||
`,
|
||||
|
||||
async test({ assert, target, component }) {
|
||||
component.x = 2;
|
||||
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<span>2</span>
|
||||
<span>2</span>
|
||||
`);
|
||||
}
|
||||
};
|
8
test/runtime/samples/component-slot-let-f/main.svelte
Normal file
8
test/runtime/samples/component-slot-let-f/main.svelte
Normal file
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
import A from './A.svelte';
|
||||
export let x = 1;
|
||||
</script>
|
||||
|
||||
<A {x} let:reflected>
|
||||
<span>{reflected}</span>
|
||||
</A>
|
Loading…
Reference in New Issue
Block a user