From: Subramanya Sastry Date: Tue, 23 Oct 2012 16:17:50 +0000 (-0500) Subject: Additional parser tests to spec parser behavior and test Parsoid. X-Git-Tag: 1.31.0-rc.0~21901^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=dd458883e36a6595af36d5b05fbe2beb9bbc20e2;p=lhc%2Fweb%2Fwiklou.git Additional parser tests to spec parser behavior and test Parsoid. Change-Id: Ife9750c5904cac1557b631f34a4ca8542f389226 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index eb3a961214..dbbcd478cf 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -987,8 +987,7 @@ bar !!end ### -### Parsoid-centric tests for testing RT edge cases -### around comments and white-space inside pre blocks +### Parsoid-centric tests for testing RT edge cases for pre ### !!test @@ -1030,6 +1029,75 @@ c !!end +!!test +2a. Pre and tables +!!input + {| + |- + !h1!!h2 + |foo||bar + |} +!!result + + + + + + +
h1h2 +foobar +
+ +!!end + +!!test +2b. Pre and tables +!!input + {| + |- +|foo +|} +!!result + + + +
foo +
+ +!!end + +!!test +3. Pre and block tags +!!input +

foo

+
foo
+ foo +!!result +

foo

+
foo
+
 foo 
+
+!!end + +!!test +4. Multiple spaces at start-of-line +!!input +

foo

+ foo + {| +|foo +|} +!!result +

foo

+
   foo
+
+ + +
foo +
+ +!!end + ### ### Definition lists ### @@ -1252,6 +1320,26 @@ Definition Lists: Indentation: Multi-level indent !! end +!! test +Definition Lists: Hacky use to indent tables +!! input +::{| +|foo +|bar +|} +this text +should be left alone +!! result +
+ + +
foo +bar +
+

this text +should be left alone +

+!! end ## The PHP parser treats : items (dd) without a corresponding ; item (dt) ## as an empty dt item. It also ignores all but the last ";" when followed ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in @@ -2367,6 +2455,29 @@ Multiplication table !! end +!!test +Allow +/- in 2nd and later cells in a row +!!input +{| +| 1 || 2 || 3 +|- +| 1 || +2 || -3 +|} +!!result + + + + + + + + +
1 2 3 +
1 +2 -3 +
+ +!!end + !! test Table rowspan !! input