Test un-closed noinclude, onlyinclude and includeonly tags
authorGabriel Wicke <gwicke@wikimedia.org>
Tue, 20 Nov 2012 16:55:00 +0000 (08:55 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Tue, 20 Nov 2012 16:55:00 +0000 (08:55 -0800)
Change-Id: I328d1e2f5c1362caa0cb32efcd7b81dab7bab8c5

tests/parser/parserTests.txt

index d85cb4b..2d8a6b8 100644 (file)
@@ -4743,6 +4743,13 @@ Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
 </p>
 !! end
 
+!! test
+Un-closed <noinclude>
+!! input
+<noinclude>
+!! result
+!! end
+
 !! test
 <onlyinclude> on a page
 !! input
@@ -4752,6 +4759,13 @@ Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
 </p>
 !! end
 
+!! test
+Un-closed <onlyinclude>
+!! input
+<onlyinclude>
+!! result
+!! end
+
 !! article
 Template:Includeonly section
 !! text
@@ -4810,6 +4824,13 @@ section=1
 ==Section 1==
 !! end
 
+!! test
+Un-closed <includeonly>
+!! input
+<includeonly>
+!! result
+!! end
+
 ###
 ### <includeonly> and <noinclude> in attributes
 ###