Skip to content

Commit 52032be

Browse files
committed
failing test for #1527
1 parent 7c0986f commit 52032be

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<span><slot></slot></span>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
export default {
2+
data: {
3+
x: true,
4+
value: 'one'
5+
},
6+
7+
html: `
8+
<div>
9+
<input>
10+
<span>x</span>
11+
</div>
12+
`,
13+
14+
nestedTransitions: true,
15+
16+
test(assert, component, target, window, raf) {
17+
const div = target.querySelector('div');
18+
const { appendChild, insertBefore } = div;
19+
20+
div.appendChild = div.insertBefore = () => {
21+
throw new Error('DOM was mutated');
22+
};
23+
24+
component.set({ value: 'two' });
25+
},
26+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div>
2+
{#if x}
3+
<input on:input="set({ value: this.value })">
4+
<Span>x</Span>
5+
{/if}
6+
</div>
7+
8+
<script>
9+
export default {
10+
components: {
11+
Span: './Span.html'
12+
}
13+
};
14+
</script>

0 commit comments

Comments
 (0)