From 31fc5b0887df79eb363d32cec827dfdf263f386c Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Wed, 16 Jul 2014 14:04:07 -0700 Subject: [PATCH] Add textarea parse tests Test for bugs reported by Andrew and Vincent, concerning parsing of dynamic attributes and contents of textarea. --- packages/html-tools/parse_tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/html-tools/parse_tests.js b/packages/html-tools/parse_tests.js index 3c5c27ebe5..6bac32fd5b 100644 --- a/packages/html-tools/parse_tests.js +++ b/packages/html-tools/parse_tests.js @@ -129,6 +129,9 @@ Tinytest.add("html-tools - parser getContent", function (test) { succeed('', TEXTAREA({value: "&"})); succeed('asdf', [TEXTAREA({value: "x', [DIV("x"), TEXTAREA()]); // CR/LF behavior succeed('', BR({x:''})); @@ -358,4 +361,9 @@ Tinytest.add("html-tools - getTemplateTag", function (test) { succeed('', null); succeed('{{!foo}}', null); + + succeed('', + TEXTAREA(Attrs({x:"1"}, TemplateTag({stuff: 'a'}), + TemplateTag({stuff: 'b'})))); + });