From b56050b60a3d2c6766b602933d8c61248d061bf6 Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Tue, 25 Apr 2023 08:47:46 -0400 Subject: [PATCH] Add more destructured var store tests --- .../_config.js | 3 +++ .../main.svelte | 19 ++++++++++++++++++ .../var-store-destructured-in-if/_config.js | 3 +++ .../var-store-destructured-in-if/main.svelte | 20 +++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 test/runtime/samples/var-store-destructured-in-do-while/_config.js create mode 100644 test/runtime/samples/var-store-destructured-in-do-while/main.svelte create mode 100644 test/runtime/samples/var-store-destructured-in-if/_config.js create mode 100644 test/runtime/samples/var-store-destructured-in-if/main.svelte diff --git a/test/runtime/samples/var-store-destructured-in-do-while/_config.js b/test/runtime/samples/var-store-destructured-in-do-while/_config.js new file mode 100644 index 0000000000..2f1e16b80c --- /dev/null +++ b/test/runtime/samples/var-store-destructured-in-do-while/_config.js @@ -0,0 +1,3 @@ +export default { + html: '

3

5

4

' +}; diff --git a/test/runtime/samples/var-store-destructured-in-do-while/main.svelte b/test/runtime/samples/var-store-destructured-in-do-while/main.svelte new file mode 100644 index 0000000000..95dd38cffe --- /dev/null +++ b/test/runtime/samples/var-store-destructured-in-do-while/main.svelte @@ -0,0 +1,19 @@ + + +

{x}

+

{y}

+

{z}

diff --git a/test/runtime/samples/var-store-destructured-in-if/_config.js b/test/runtime/samples/var-store-destructured-in-if/_config.js new file mode 100644 index 0000000000..2f1e16b80c --- /dev/null +++ b/test/runtime/samples/var-store-destructured-in-if/_config.js @@ -0,0 +1,3 @@ +export default { + html: '

3

5

4

' +}; diff --git a/test/runtime/samples/var-store-destructured-in-if/main.svelte b/test/runtime/samples/var-store-destructured-in-if/main.svelte new file mode 100644 index 0000000000..ab7d6d110e --- /dev/null +++ b/test/runtime/samples/var-store-destructured-in-if/main.svelte @@ -0,0 +1,20 @@ + + +

{x}

+

{y}

+

{z}