From: Gabriel Wicke Date: Mon, 18 Mar 2013 22:26:00 +0000 (-0700) Subject: Add two table parser tests X-Git-Tag: 1.31.0-rc.0~20289^2 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=134033c0317a6c4e8cdc642ab68a9952e5c98204;p=lhc%2Fweb%2Fwiklou.git Add two table parser tests One tests paragraph wrapping inside of table cells, the other mixed wikitext / html syntax tables in Parsoid only. Change-Id: I1e07e868d7f329ac1fa5d33b7fa07c7e701f41ba --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e9218dec6b..251bf23d4e 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -3311,6 +3311,43 @@ Wikitext table with a lot of comments !! end +!! test +Wikitext table with double-line table cell +!! input +{| +|a +b +|} +!! result + + +
a +

b +

+
+ +!! end + +# The expected HTML structure in this test is debatable. The PHP parser does +# not parse this kind of table at all. The main focus for Parsoid is on +# round-tripping, so this output is ok for now. TODO: revisit! +!! test +Wikitext table with html-syntax row (Parsoid) +!! options +parsoid +!! input +{| +|- +foo +|} +!! result + + + + +
foo
+!! end + ### ### Internal links ###