More parameter stripping tests: nested and single-line
authorGabriel Wicke <gwicke@wikimedia.org>
Thu, 8 Nov 2012 22:18:05 +0000 (14:18 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Thu, 8 Nov 2012 22:37:49 +0000 (14:37 -0800)
Change-Id: I3140932539078b24d0e39d45f5305ce9d5dbe7a9

tests/parser/parserTests.txt

index fd4c08b..a1de736 100644 (file)
@@ -1042,6 +1042,27 @@ Templates: Pre: 1f: Wrapping should be based on expanded content
 </pre>
 !!end
 
+!! test
+Templates: Single-line variant of parameter whitespace stripping test
+!! input
+{{echo| a}}
+
+{{echo|1= a}}
+
+{{echo|{{echo| a}}}}
+
+{{echo|1={{echo| a}}}}
+!! result
+<pre>a
+</pre>
+<p>a
+</p>
+<pre>a
+</pre>
+<p>a
+</p>
+!! end
+
 ###
 ### Parsoid-centric tests for testing RT edge cases for pre
 ###