mirror of https://github.com/sveltejs/svelte
failing test for #625
parent
6227745467
commit
4037b647cb
@ -0,0 +1,15 @@
|
|||||||
|
<Level2>
|
||||||
|
<Level3 />
|
||||||
|
</Level2>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Level2 from './Level2.html';
|
||||||
|
import Level3 from './Level3.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Level2,
|
||||||
|
Level3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,12 @@
|
|||||||
|
<span>level 2</span>
|
||||||
|
{{yield}}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Level3 from './Level3.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Level3
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
@ -0,0 +1 @@
|
|||||||
|
<span>level 3</span>
|
@ -0,0 +1,5 @@
|
|||||||
|
export default {
|
||||||
|
test (assert, component) {
|
||||||
|
component.refs.l1.destroy();
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,11 @@
|
|||||||
|
<Level1 ref:l1 />
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Level1 from './Level1.html';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Level1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
Loading…
Reference in new issue