diff --git a/test/runtime/samples/component-binding-blowback-d/A.html b/test/runtime/samples/component-binding-blowback-d/A.html new file mode 100644 index 0000000000..2964f496bb --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-d/A.html @@ -0,0 +1,15 @@ + + + \ No newline at end of file diff --git a/test/runtime/samples/component-binding-blowback-d/B.html b/test/runtime/samples/component-binding-blowback-d/B.html new file mode 100644 index 0000000000..82ad6d371b --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-d/B.html @@ -0,0 +1 @@ +
whatever
\ 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..ce3ee7af51 --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-d/_config.js @@ -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 } + ]); + } +}; diff --git a/test/runtime/samples/component-binding-blowback-d/main.html b/test/runtime/samples/component-binding-blowback-d/main.html new file mode 100644 index 0000000000..3fd503372b --- /dev/null +++ b/test/runtime/samples/component-binding-blowback-d/main.html @@ -0,0 +1,11 @@ +{#if show} + +{/if} + +