{"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} +{"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} +{"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