From eda4f90cdee476c67bda985d97e5ce6c4dd08774 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Mon, 5 Aug 2019 08:35:36 -0400 Subject: [PATCH] failing test for #3354 --- .../runtime/samples/component-slot-let-f/A.svelte | 9 +++++++++ .../runtime/samples/component-slot-let-f/B.svelte | 5 +++++ .../samples/component-slot-let-f/_config.js | 15 +++++++++++++++ .../samples/component-slot-let-f/main.svelte | 8 ++++++++ 4 files changed, 37 insertions(+) create mode 100644 test/runtime/samples/component-slot-let-f/A.svelte create mode 100644 test/runtime/samples/component-slot-let-f/B.svelte create mode 100644 test/runtime/samples/component-slot-let-f/_config.js create mode 100644 test/runtime/samples/component-slot-let-f/main.svelte diff --git a/test/runtime/samples/component-slot-let-f/A.svelte b/test/runtime/samples/component-slot-let-f/A.svelte new file mode 100644 index 0000000000..79428b13ec --- /dev/null +++ b/test/runtime/samples/component-slot-let-f/A.svelte @@ -0,0 +1,9 @@ + + + + {reflected} + + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-let-f/B.svelte b/test/runtime/samples/component-slot-let-f/B.svelte new file mode 100644 index 0000000000..7a8dc596ba --- /dev/null +++ b/test/runtime/samples/component-slot-let-f/B.svelte @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/test/runtime/samples/component-slot-let-f/_config.js b/test/runtime/samples/component-slot-let-f/_config.js new file mode 100644 index 0000000000..74de38be02 --- /dev/null +++ b/test/runtime/samples/component-slot-let-f/_config.js @@ -0,0 +1,15 @@ +export default { + html: ` + 1 + 1 + `, + + async test({ assert, target, component }) { + component.x = 2; + + assert.htmlEqual(target.innerHTML, ` + 2 + 2 + `); + } +}; diff --git a/test/runtime/samples/component-slot-let-f/main.svelte b/test/runtime/samples/component-slot-let-f/main.svelte new file mode 100644 index 0000000000..71362d9b4e --- /dev/null +++ b/test/runtime/samples/component-slot-let-f/main.svelte @@ -0,0 +1,8 @@ + + + + {reflected} + \ No newline at end of file