From: Subramanya Sastry Date: Tue, 6 Nov 2012 22:50:13 +0000 (-0600) Subject: Additional Parsoid-centric tests to improve code coverage. X-Git-Tag: 1.31.0-rc.0~21722 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=6c775102d44e992ecbc081f53525992c51e3739f;p=lhc%2Fweb%2Fwiklou.git Additional Parsoid-centric tests to improve code coverage. * New tests + removed unneeded trailing whitespace. Change-Id: Id0b80ec4a7a13ed0f0e24b1289d0d8fe23cecfde --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 2f20fbcd12..2fa8a50486 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -48,7 +48,7 @@ Template:Blank !! endarticle !! article -Template:! +Template:pipe !! text | !! endarticle @@ -65,6 +65,12 @@ Template:inner list * item 1 !! endarticle +!! article +Template:! +!! text +| +!! endarticle + !! article Template:echo !! text @@ -964,6 +970,8 @@ Templates: Pre: 1e. Wrapping should be based on expanded content !!input {{echo| foo}} +{{echo| foo}}{{echo| bar}} + {{echo| foo}} {{echo| bar}} @@ -975,6 +983,8 @@ Templates: Pre: 1e. Wrapping should be based on expanded content !!result
foo
 
+
foo bar
+
foo
 bar
 
@@ -986,6 +996,43 @@ bar !!end +!! test +Templates: Pre: 1f: Wrapping should be based on expanded content +!! input +{{echo| }}a + +{{echo| + }}a + +{{echo| + b}} + +{{echo|a + }}b + +{{echo|a +}} b +!!result +
a
+
+


+

+
a
+
+


+

+
b
+
+

a +

+
b
+
+

a +

+
b
+
+!!end + ### ### Parsoid-centric tests for testing RT edge cases for pre ### @@ -1067,7 +1114,7 @@ c !!end !!test -3. Pre and block tags +3a. Pre and block tags (single-line html) !!input

foo

foo
@@ -1079,6 +1126,58 @@ c !!end +!!test +3b. Pre and block tags (pre-content on separate line) +!!input +

+ foo +

+ +
+ foo +
+ +
+ foo +
+ +
+ foo +
+ +
+ foo +
+ + + +!!result +

+ foo +

+
+
foo
+
+
+
+
foo
+
+
+
+ foo +
+
+
foo
+
+
+ + +!!end + !!test 4. Multiple spaces at start-of-line !!input @@ -1235,13 +1334,13 @@ Bug 11748: Literal closing tags Definition and unordered list using wiki syntax nested in unordered list using html tags. !! input !! result