From: Subramanya Sastry Date: Wed, 28 Nov 2012 20:13:21 +0000 (-0600) Subject: Additional table tests to spec parser behavior. X-Git-Tag: 1.31.0-rc.0~21478^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=91cde77693c20ebd6667c09c5cce1dd1401f446c;p=lhc%2Fweb%2Fwiklou.git Additional table tests to spec parser behavior. Change-Id: I4f4852744d463d77fc622c1bcce27e3d9751bc6b --- 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