failing test for #1527

pull/1529/head
Rich Harris 6 years ago
parent 7c0986fded
commit 52032bef8f

@ -0,0 +1,26 @@
export default {
data: {
x: true,
value: 'one'
},
html: `
<div>
<input>
<span>x</span>
</div>
`,
nestedTransitions: true,
test(assert, component, target, window, raf) {
const div = target.querySelector('div');
const { appendChild, insertBefore } = div;
div.appendChild = div.insertBefore = () => {
throw new Error('DOM was mutated');
};
component.set({ value: 'two' });
},
};

@ -0,0 +1,14 @@
<div>
{#if x}
<input on:input="set({ value: this.value })">
<Span>x</Span>
{/if}
</div>
<script>
export default {
components: {
Span: './Span.html'
}
};
</script>
Loading…
Cancel
Save