diff --git a/test/runtime/samples/component-binding-blowback-d/One.svelte b/test/runtime/samples/component-binding-blowback-d/One.svelte new file mode 100644 index 0000000000..e2e86b1bf7 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-d/One.svelte @@ -0,0 +1,17 @@ + + +{#each list as item} + +{/each} + + \ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-d/Two.svelte b/test/runtime/samples/component-binding-blowback-d/Two.svelte new file mode 100644 index 0000000000..4f55f14124 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-d/Two.svelte @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-d/_config.js b/test/runtime/samples/component-binding-blowback-d/_config.js new file mode 100644 index 0000000000..fe1164f100 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-d/_config.js @@ -0,0 +1,23 @@ +export default { + html: ` + + + +

{"value":"x"}

+

+ `, + + async test({ assert, target, window }) { + const button = target.querySelectorAll('button')[1]; + + await button.dispatchEvent(new window.Event('click')); + + assert.htmlEqual(target.innerHTML, ` + + + +

{"value":"x"}

+

{"value":"x"}

+ `); + } +}; diff --git a/test/runtime/samples/component-binding-blowback-d/main.svelte b/test/runtime/samples/component-binding-blowback-d/main.svelte new file mode 100644 index 0000000000..5690b33813 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-d/main.svelte @@ -0,0 +1,14 @@ + + + + + +

{obj.a.map(JSON.stringify)}

+

{obj.b.map(JSON.stringify)}

\ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-e/One.svelte b/test/runtime/samples/component-binding-blowback-e/One.svelte new file mode 100644 index 0000000000..e2e86b1bf7 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-e/One.svelte @@ -0,0 +1,17 @@ + + +{#each list as item} + +{/each} + + \ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-e/Two.svelte b/test/runtime/samples/component-binding-blowback-e/Two.svelte new file mode 100644 index 0000000000..9bc34c321f --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-e/Two.svelte @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-e/_config.js b/test/runtime/samples/component-binding-blowback-e/_config.js new file mode 100644 index 0000000000..37f687a4f6 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-e/_config.js @@ -0,0 +1,23 @@ +export default { + html: ` + + + +

{"value":{"x":true}}

+

+ `, + + async test({ assert, target, window }) { + const button = target.querySelectorAll('button')[1]; + + await button.dispatchEvent(new window.Event('click')); + + assert.htmlEqual(target.innerHTML, ` + + + +

{"value":{"x":true}}

+

{"value":{"x":true}}

+ `); + } +}; diff --git a/test/runtime/samples/component-binding-blowback-e/main.svelte b/test/runtime/samples/component-binding-blowback-e/main.svelte new file mode 100644 index 0000000000..5690b33813 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-e/main.svelte @@ -0,0 +1,14 @@ + + + + + +

{obj.a.map(JSON.stringify)}

+

{obj.b.map(JSON.stringify)}

\ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-f/One.svelte b/test/runtime/samples/component-binding-blowback-f/One.svelte new file mode 100644 index 0000000000..e2e86b1bf7 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-f/One.svelte @@ -0,0 +1,17 @@ + + +{#each list as item} + +{/each} + + \ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-f/Two.svelte b/test/runtime/samples/component-binding-blowback-f/Two.svelte new file mode 100644 index 0000000000..28d3ae830f --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-f/Two.svelte @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-f/_config.js b/test/runtime/samples/component-binding-blowback-f/_config.js new file mode 100644 index 0000000000..d73f3e3943 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-f/_config.js @@ -0,0 +1,25 @@ +export default { + skip: 1, + + html: ` + + + +

{"value":{"x":true}}

+

+ `, + + async test({ assert, target, window }) { + const button = target.querySelectorAll('button')[1]; + + await button.dispatchEvent(new window.Event('click')); + + assert.htmlEqual(target.innerHTML, ` + + + +

{"value":{"x":true}}

+

{"value":{"x":true}}

+ `); + } +}; diff --git a/test/runtime/samples/component-binding-blowback-f/main.svelte b/test/runtime/samples/component-binding-blowback-f/main.svelte new file mode 100644 index 0000000000..5690b33813 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-f/main.svelte @@ -0,0 +1,14 @@ + + + + + +

{obj.a.map(JSON.stringify)}

+

{obj.b.map(JSON.stringify)}

\ No newline at end of file