From 91cde77693c20ebd6667c09c5cce1dd1401f446c Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Wed, 28 Nov 2012 14:13:21 -0600 Subject: [PATCH] Additional table tests to spec parser behavior. Change-Id: I4f4852744d463d77fc622c1bcce27e3d9751bc6b --- tests/parser/parserTests.txt | 73 +++++++++++++++++++++++++++++++++--- 1 file changed, 68 insertions(+), 5 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 319e6f6e00..31c2ba6cfb 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2740,25 +2740,88 @@ Multiplication table !! end +!! test +Accept "||" in table headings +!! input +{| +!h1 || h2 +|} +!! result + + + +
h1 h2 +
+ +!! end + +!! test +Accept "||" in indented table headings +!! input +:{| +!h1 || h2 +|} +!! result +
+ + +
h1 h2 +
+ +!! end + +!! test +Accept empty attributes in td/th cells (td/th cells starting with leading ||) +!! input +{| +!| h1 +|| a +|} +!! result + + + +
h1 + a +
+ +!! end + !!test -Allow +/- in 2nd and later cells in a row +Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/- !!input {| +|- +|style='color:red;'|+1 +|style='color:blue;'|-1 +|- | 1 || 2 || 3 +| 1 ||+2 ||-3 |- -| 1 || +2 || -3 +| +1 +| -1 |} !!result + + + + + + + - - - +
+1 +-1 +
1 2 3 + 1 +2 -3
1 +2 -3 + +1 + -1
!!end -- 2.20.1