From: Subramanya Sastry Date: Thu, 8 Nov 2012 22:43:47 +0000 (+0000) Subject: Merge "Add a test for named vs. positional parameter whitespace stripping" X-Git-Tag: 1.31.0-rc.0~21698 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=700e0ee0669fc267c597a12d5a1f30c0454b1d95;p=lhc%2Fweb%2Fwiklou.git Merge "Add a test for named vs. positional parameter whitespace stripping" --- 700e0ee0669fc267c597a12d5a1f30c0454b1d95 diff --cc tests/parser/parserTests.txt index db6a5c78da,790723c0b3..4690e1a88e --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@@ -1049,27 -1042,34 +1049,55 @@@ Templates: Pre: 1f: Wrapping should be !!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 +
a
 +
+

a +

+
a
 +
+

a +

+!! end + + !! test + Templates: Strip whitespace from named parameters, but not positional ones + !! input + {{echo| + foo}} + + {{echo| + * foo}} + + {{echo| 1 = + foo}} + + {{echo| 1 = + * foo}} + !! result +
foo
+ 
+


+

+ +

foo +

+ + + !! end + ### ### Parsoid-centric tests for testing RT edge cases for pre ###