From 73fda1270063dcf882f133c1eb15fb68231865e6 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 3 Dec 2019 08:36:22 -0500 Subject: [PATCH] failing test for #4044 --- .../await-containing-contextual-if/_config.js | 12 ++++++++++++ .../await-containing-contextual-if/main.svelte | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 test/runtime/samples/await-containing-contextual-if/_config.js create mode 100644 test/runtime/samples/await-containing-contextual-if/main.svelte diff --git a/test/runtime/samples/await-containing-contextual-if/_config.js b/test/runtime/samples/await-containing-contextual-if/_config.js new file mode 100644 index 000000000000..ea5324e1d122 --- /dev/null +++ b/test/runtime/samples/await-containing-contextual-if/_config.js @@ -0,0 +1,12 @@ +export default { + solo: true, + html: ` +

loading...

+ `, + async test({ assert, target }) { + await null; + assert.htmlEqual(target.innerHTML, ` +

true

+ `); + } +}; diff --git a/test/runtime/samples/await-containing-contextual-if/main.svelte b/test/runtime/samples/await-containing-contextual-if/main.svelte new file mode 100644 index 000000000000..129377c8eac2 --- /dev/null +++ b/test/runtime/samples/await-containing-contextual-if/main.svelte @@ -0,0 +1,13 @@ + + +{#await promise} +

loading...

+{:then result} + {#if result} +

true

+ {:else} +

false

+ {/if} +{/await}