From ddfc3e9f1e606c8f4f2b61e5dabe8cd93f16204d Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 6 Dec 2016 12:24:57 -0500 Subject: [PATCH] additional test for #88, from #126 --- .../compiler/names-deconflicted-nested/_config.js | 15 +++++++++++++++ test/compiler/names-deconflicted-nested/main.html | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 test/compiler/names-deconflicted-nested/_config.js create mode 100644 test/compiler/names-deconflicted-nested/main.html diff --git a/test/compiler/names-deconflicted-nested/_config.js b/test/compiler/names-deconflicted-nested/_config.js new file mode 100644 index 0000000000..f666a00448 --- /dev/null +++ b/test/compiler/names-deconflicted-nested/_config.js @@ -0,0 +1,15 @@ +export default { + data: { + array: [ [0,0,0], [0,0,0], [0,0,0] ] + }, + + html: ` +
+ [ 0, 0 ][ 0, 1 ][ 0, 2 ] +
+ [ 1, 0 ][ 1, 1 ][ 1, 2 ] +
+ [ 2, 0 ][ 2, 1 ][ 2, 2 ] +
+ ` +}; diff --git a/test/compiler/names-deconflicted-nested/main.html b/test/compiler/names-deconflicted-nested/main.html new file mode 100644 index 0000000000..027ce3276b --- /dev/null +++ b/test/compiler/names-deconflicted-nested/main.html @@ -0,0 +1,7 @@ +{{#each array as row, j}} +
+ {{#each row as cell, k}} + [ {{j}}, {{k}} ] + {{/each}} +
+{{/each}}