From: Arlo Breault Date: Fri, 3 Jun 2016 17:59:52 +0000 (-0700) Subject: Sync up with Parsoid parserTests. X-Git-Tag: 1.31.0-rc.0~6720 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=35477b6e3aa156c99f9ed905e2b10a01de12267b;p=lhc%2Fweb%2Fwiklou.git Sync up with Parsoid parserTests. This now aligns with Parsoid commit 8fa3996c2656b66789e658c50150f45b19c69ae1 Change-Id: I7f839aaddddf6ac96b7d155989f20a2b386d5622 --- 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 ###