From: Subramanya Sastry Date: Fri, 5 Oct 2012 00:01:45 +0000 (-0500) Subject: Added tests for well-nested uses in html attr context. X-Git-Tag: 1.31.0-rc.0~22148 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=e68aeb4e17192d6ab088eae412ecbf7b92db438e;p=lhc%2Fweb%2Fwiklou.git Added tests for well-nested uses in html attr context. Change-Id: Ic1230371582cfab7bfdc367f1cfce1c6c192caac --- 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.