From e68aeb4e17192d6ab088eae412ecbf7b92db438e Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Thu, 4 Oct 2012 19:01:45 -0500 Subject: [PATCH] Added tests for well-nested uses in html attr context. Change-Id: Ic1230371582cfab7bfdc367f1cfce1c6c192caac --- tests/parser/parserTests.txt | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index f555d4f353..c7acfd5fcf 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -4322,6 +4322,47 @@ section=1 ==Section 1== !! end +### +### and in attributes +### +!!test +1. includeonly around the entire attribute +!!input +id="v1"id="v2">bar +!!result +

bar +

+!!end + +!!test +2. includeonly in html attr key +!!input +id
about="foo">bar +!!result +

bar +

+!!end + +!!test +3. includeonly in html attr value +!!input +bar +"v1""v2">bar +!!result +

bar +bar +

+!!end + +!!test +4. includeonly in part of an attr value +!!input +bar +!!result +

bar +

+!!end + ### ### Testing parsing of templates where a template arg ### has the same name as the template itself. -- 2.20.1