Additional template and pre-wrapping interaction tests.
authorSubramanya Sastry <ssastry@wikimedia.org>
Tue, 2 Oct 2012 21:43:33 +0000 (16:43 -0500)
committerSubramanya Sastry <ssastry@wikimedia.org>
Tue, 2 Oct 2012 21:43:33 +0000 (16:43 -0500)
Change-Id: I84f5b223d2f7abba3668be6f13784664380cf82f

tests/parser/parserTests.txt

index 66ef0d9..4487110 100644 (file)
@@ -893,7 +893,7 @@ foo}}
 !!end
 
 !! test
-Templates: Pre: 1c: Wrapping should be based one expanded content
+Templates: Pre: 1c: Wrapping should be based on expanded content
 !! input
  {{echo|a
 b}}
@@ -905,7 +905,7 @@ b}}
 !!end
 
 !! test
-Templates: Pre: 1d: Wrapping should be based one expanded content
+Templates: Pre: 1d: Wrapping should be based on expanded content
 !! input
  {{echo|a
 b
@@ -925,6 +925,33 @@ c
 </p>
 !!end
 
+!!test
+Templates: Pre: 1e. Wrapping should be based on expanded content
+!!input
+{{echo| foo}}
+
+{{echo| foo}}
+{{echo| bar}}
+
+{{echo|<!--cmt--> foo}}
+
+<!--cmt-->{{echo| foo}}
+
+{{echo|{{echo| }}bar}}
+!!result
+<pre>foo
+</pre>
+<pre>foo
+bar
+</pre>
+<pre>foo
+</pre>
+<pre>foo
+</pre>
+<pre>bar
+</pre>
+!!end
+
 ###
 ### Definition lists
 ###