From 35477b6e3aa156c99f9ed905e2b10a01de12267b Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Fri, 3 Jun 2016 10:59:52 -0700 Subject: [PATCH] Sync up with Parsoid parserTests. This now aligns with Parsoid commit 8fa3996c2656b66789e658c50150f45b19c69ae1 Change-Id: I7f839aaddddf6ac96b7d155989f20a2b386d5622 --- tests/parser/parserTests.txt | 73 ++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 6c3841dccc..1f1d53b393 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -7170,6 +7170,79 @@ parsoid={ |} !!end +!! test +Testing selser after addition of new row before first row (T125419) +!! options +parsoid={ + "modes": ["wt2wt", "selser"], + "changes": [ + [ "tr", "before", "X" ] + ] +} +!! wikitext +{| +|a +|} +!! wikitext/edited +{| +|X +|- +|a +|} +!! end + +!! test +Serialize new table rows in a HTML table using HTML tags +!! options +parsoid={ + "modes": ["wt2wt", "selser"], + "changes": [ + [ "tr", "before", "X" ] + ] +} +!! wikitext +
a
+!! wikitext/edited +
X
a
+!! end + +!! test +Serialize new table cells in a HTML row using HTML tags +!! options +parsoid={ + "modes": ["wt2wt", "selser"], + "changes": [ + [ "td", "before", "X" ] + ] +} +!! wikitext +
a
+!! wikitext/edited +
Xa
+!! end + +!! test +Wikitext tables can be nested inside HTML tables +!! options +parsoid=html2wt +!! html + + +
+ + +
foo
+
+!! wikitext + + +
+{| +|foo +|} +
+!! end + ### ### Internal links ### -- 2.20.1