From: C. Scott Ananian Date: Fri, 16 Aug 2013 18:43:14 +0000 (-0400) Subject: Sync up with Parsoid parserTests. X-Git-Tag: 1.31.0-rc.0~18953^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=2305dbbd2aa5723e53d116e04d97730fe0811629;p=lhc%2Fweb%2Fwiklou.git Sync up with Parsoid parserTests. This now aligns with Parsoid commit bf60ad87877b573c9db813fe56f38842e2c52a3d Change-Id: I9647d5010e06263a31970d8c168667af56c75b77 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 74f44718d5..146f86718e 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -1629,66 +1629,82 @@ Templates: Indent-Pre: 1f: Wrapping should be based on expanded content !!end +#-------------------------------------------------------------------- +# Transclusion parameter whitespace stripping tests +# Behavior is different for positional and named parameters +#-------------------------------------------------------------------- !! test -Templates: Single-line variant of parameter whitespace stripping test +Templates: Strip leading and trailing whitespace from named-param values !! input -{{echo| a}} +{{echo|1= a }} -{{echo|1= a}} +{{echo|1= {{echo|b}} }} -{{echo|{{echo| a}}}} +{{echo| 1 = + c }} -{{echo|1={{echo| a}}}} +{{echo| 1 = +* d +}} !! result -
a
-
-

a -

-
a
-

a +

b +

c

+ + !! end !! test -Templates: Strip whitespace from named parameters, but not positional ones +Templates: Don't strip whitespace from positional-param values +!! options !! input -{{echo| - foo}} +{{echo|a }} + +{{echo|{{echo|b}} }} + +{{echo| c +}} + +{{echo| {{echo|d}} +}} {{echo| -* foo}} + e}} -{{echo| 1 = - foo}} +{{echo| +* f}} -{{echo| 1 = -* foo}} +{{echo| + }}g !! result -
foo
+

a +

b +

+
c 
 


- -

foo +

d
+
+


-
+!!result +plain text +!!end + # ----------------------------------------------------------------- # The following section of tests are primarily to spec requirements # around serialization of new/edited content. @@ -17181,6 +17269,23 @@ parsoid=html2wt

123

456

!!end +# Wacky -- the leading newline in input is required because +# that is what the serializer emits. To be fixed. Not fixing +# the test because this test is required to test serialization of +# new content and preferred whitespace style. +!! test +Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does) +!! options +parsoid=html2wt +!! input + +* foo +!! result + +!! end + # Wacky -- the leading newline in input is required because # that is what the serializer emits. To be fixed. Not fixing # the test because this test is required to test serialization of