mirror of https://github.com/sveltejs/svelte
failing test for #1794
parent
1e28b3f758
commit
f82bc16b88
@ -0,0 +1,15 @@
|
||||
<B bind:x="y.z"></B>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
B: './B.html',
|
||||
},
|
||||
|
||||
data () {
|
||||
return {
|
||||
y: {}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
@ -0,0 +1 @@
|
||||
<p>whatever</p>
|
@ -0,0 +1,22 @@
|
||||
export default {
|
||||
data: {
|
||||
show: false,
|
||||
foo: {}
|
||||
},
|
||||
|
||||
html: ``,
|
||||
|
||||
test (assert, component, target, window) {
|
||||
const changes = [];
|
||||
|
||||
component.on('update', ({ changed }) => {
|
||||
changes.push(changed);
|
||||
});
|
||||
|
||||
component.set({ show: true });
|
||||
|
||||
assert.deepEqual(changes, [
|
||||
{ show: true }
|
||||
]);
|
||||
}
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
{#if show}
|
||||
<A bind:foo="foo"></A>
|
||||
{/if}
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
A: './A.html'
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue