From c36318dd02347e306d554c564eb544271cc5b281 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Fri, 2 Aug 2019 07:49:03 -0400 Subject: [PATCH] failing test for #3285 --- test/runtime/samples/each-block-keyed-html/_config.js | 10 ++++++++++ test/runtime/samples/each-block-keyed-html/main.svelte | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/runtime/samples/each-block-keyed-html/_config.js create mode 100644 test/runtime/samples/each-block-keyed-html/main.svelte diff --git a/test/runtime/samples/each-block-keyed-html/_config.js b/test/runtime/samples/each-block-keyed-html/_config.js new file mode 100644 index 0000000000..536e54543e --- /dev/null +++ b/test/runtime/samples/each-block-keyed-html/_config.js @@ -0,0 +1,10 @@ +export default { + html: ` + JohnJill + `, + + test({ assert, component, target }) { + component.names = component.names.reverse(); + assert.htmlEqual(target.innerHTML, `JillJohn`); + } +}; diff --git a/test/runtime/samples/each-block-keyed-html/main.svelte b/test/runtime/samples/each-block-keyed-html/main.svelte new file mode 100644 index 0000000000..97c5f8c898 --- /dev/null +++ b/test/runtime/samples/each-block-keyed-html/main.svelte @@ -0,0 +1,8 @@ + + +{#each names as name (name)} + {@html name} +{/each} +