From 673d788b0f03b62ca3a466bf1ac6832fed6f8038 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Wed, 15 Nov 2017 09:42:11 -0500 Subject: [PATCH] Sync up with Parsoid parserTests.txt This now aligns with Parsoid commit 3048db625dca69d8a89cde4cbabee0105f2975f5 Change-Id: I2bf07d6582367f25d9f69712dc4350982b627851 --- tests/parser/parserTests.txt | 64 ++++++++++++++++++++++++++++-------- 1 file changed, 50 insertions(+), 14 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 82054c4c5b..a505cde6d4 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -6350,7 +6350,7 @@ Accept "!!" in table data !! html/parsoid - +
Foo!!
Foo!!
!! end @@ -6626,7 +6626,7 @@ parsoid=wt2html,html2html !! html/parsoid -
[ftp://%7Cx]" onmouseover="alert(document.cookie)">test
+[ftp://%7Cx]" onmouseover="alert(document.cookie)">test !! end !! test @@ -6683,7 +6683,7 @@ parsoid=wt2html !! html/parsoid - +
style="color: red !important;" data-contrived="put this here foo
style="color: red !important;" data-contrived="put this here foo
!! end @@ -11492,9 +11492,9 @@ Abort table cell attribute parsing on wikilink !! html/parsoid - - - + + +
testing two | three four three four testing="two" | three four
testing two | three four three four testing="two" | three four
!! end @@ -14831,7 +14831,43 @@ Alt image option should handle most kinds of wikitext without barfing
This is a link and a bold template.
This is the image caption
!! html/parsoid -
This is a link and a bold template.
This is the image caption
+
This is a link and a bold template.
This is the image caption
+!! end + +!! test +Image with table with attributes in caption +!! options +parsoid=wt2html,html2html +!! wikitext +[[File:Foobar.jpg|thumb| +{| class="123" | +|- class="456" | +| ha +|} +]] +!! html/parsoid +
+ + + +
ha
+
+!! end + +!! test +Image with table with rows from templates in caption +!! wikitext +[[File:Foobar.jpg|thumb| +{| +{{echo|{{!}} hi}} +|} +]] +!! html/parsoid +
+ + +
hi
+
!! end !! test @@ -22285,7 +22321,7 @@ Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiw

Nested: Hello Hong Kong!

!! html/parsoid -

Nested: !

+

Nested: !

!! end !! test @@ -22298,7 +22334,7 @@ language=zh variant=zh-cn

A

!! html/parsoid -

+

!! end !! test @@ -22311,7 +22347,7 @@ language=zh variant=zh-cn

A

!! html/parsoid -

+

!! end # Parsoid and PHP disagree on how to parse this example: Parsoid @@ -28319,17 +28355,17 @@ parsoid=html2wt a b -c +c

x

-y +y + +
a b -c
c

x -

y
y
!! wikitext {| -- 2.20.1