From 134033c0317a6c4e8cdc642ab68a9952e5c98204 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 18 Mar 2013 15:26:00 -0700 Subject: [PATCH] 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 --- tests/parser/parserTests.txt | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) 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 ### -- 2.20.1