From 97d835b43c3cfeb9ba198b77b518e452318c9c00 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 3 Aug 2019 13:40:46 -0400 Subject: [PATCH] failing test for #3343 --- .../expected.js | 46 +++++++++++++++++++ .../input.svelte | 7 +++ 2 files changed, 53 insertions(+) create mode 100644 test/js/samples/innerhtml-interpolated-constant/expected.js create mode 100644 test/js/samples/innerhtml-interpolated-constant/input.svelte diff --git a/test/js/samples/innerhtml-interpolated-constant/expected.js b/test/js/samples/innerhtml-interpolated-constant/expected.js new file mode 100644 index 000000000000..686c705a1a8e --- /dev/null +++ b/test/js/samples/innerhtml-interpolated-constant/expected.js @@ -0,0 +1,46 @@ +/* generated by Svelte vX.Y.Z */ +import { + SvelteComponent, + detach, + element, + init, + insert, + noop, + safe_not_equal +} from "svelte/internal"; + +function create_fragment(ctx) { + var div; + + return { + c() { + div = element("div"); + div.innerHTML = ``; + }, + + m(target, anchor) { + insert(target, div, anchor); + }, + + p: noop, + i: noop, + o: noop, + + d(detaching) { + if (detaching) { + detach(div); + } + } + }; +} + +const answer = 42; + +class Component extends SvelteComponent { + constructor(options) { + super(); + init(this, options, null, create_fragment, safe_not_equal, []); + } +} + +export default Component; \ No newline at end of file diff --git a/test/js/samples/innerhtml-interpolated-constant/input.svelte b/test/js/samples/innerhtml-interpolated-constant/input.svelte new file mode 100644 index 000000000000..729744f2dedb --- /dev/null +++ b/test/js/samples/innerhtml-interpolated-constant/input.svelte @@ -0,0 +1,7 @@ + + +
+ +
\ No newline at end of file