From 78b3a1b0791c801e8a1cb2bdb0e8fc9b5781d66a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 17 Jun 2017 11:22:49 -0400 Subject: [PATCH] add test for #643 --- .../component-nested-deeper/Level1.html | 22 +++++++++++++++++++ .../component-nested-deeper/Level2.html | 8 +++++++ .../component-nested-deeper/Level3.html | 4 ++++ .../component-nested-deeper/_config.js | 11 ++++++++++ .../samples/component-nested-deeper/main.html | 11 ++++++++++ 5 files changed, 56 insertions(+) create mode 100644 test/runtime/samples/component-nested-deeper/Level1.html create mode 100644 test/runtime/samples/component-nested-deeper/Level2.html create mode 100644 test/runtime/samples/component-nested-deeper/Level3.html create mode 100644 test/runtime/samples/component-nested-deeper/_config.js create mode 100644 test/runtime/samples/component-nested-deeper/main.html diff --git a/test/runtime/samples/component-nested-deeper/Level1.html b/test/runtime/samples/component-nested-deeper/Level1.html new file mode 100644 index 0000000000..0789b14445 --- /dev/null +++ b/test/runtime/samples/component-nested-deeper/Level1.html @@ -0,0 +1,22 @@ +
+ {{#each values as value}} +

level 1 #{{value}}

+ + + And more stuff goes in here + + + {{/each}} +
+ + \ No newline at end of file diff --git a/test/runtime/samples/component-nested-deeper/Level2.html b/test/runtime/samples/component-nested-deeper/Level2.html new file mode 100644 index 0000000000..6742c7d7f9 --- /dev/null +++ b/test/runtime/samples/component-nested-deeper/Level2.html @@ -0,0 +1,8 @@ +
+

level 2

+ {{#if condition}} + TRUE! {{yield}} + {{else}} + FALSE! {{yield}} + {{/if}} +
\ No newline at end of file diff --git a/test/runtime/samples/component-nested-deeper/Level3.html b/test/runtime/samples/component-nested-deeper/Level3.html new file mode 100644 index 0000000000..e09fc525a8 --- /dev/null +++ b/test/runtime/samples/component-nested-deeper/Level3.html @@ -0,0 +1,4 @@ +
+

level 3

+ {{yield}} +
\ No newline at end of file diff --git a/test/runtime/samples/component-nested-deeper/_config.js b/test/runtime/samples/component-nested-deeper/_config.js new file mode 100644 index 0000000000..6b216f84d6 --- /dev/null +++ b/test/runtime/samples/component-nested-deeper/_config.js @@ -0,0 +1,11 @@ +export default { + solo: true, + + data: { + values: [1, 2, 3, 4] + }, + + test(assert, component) { + component.set({ values: [2, 3] }); + } +}; diff --git a/test/runtime/samples/component-nested-deeper/main.html b/test/runtime/samples/component-nested-deeper/main.html new file mode 100644 index 0000000000..5ad2d9d319 --- /dev/null +++ b/test/runtime/samples/component-nested-deeper/main.html @@ -0,0 +1,11 @@ + + + \ No newline at end of file