From c8f008e23e22c62a665f75aff29746f351ead73d Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Tue, 19 Mar 2019 11:33:40 -0400 Subject: [PATCH] Sync up with Parsoid parserTests.txt This now aligns with Parsoid commit 94b8b491098f882582f372218df07f5b68f4eba1 Change-Id: I760e73c98109047e20e4c85b97853b9b3f50b090 --- tests/parser/parserTests.txt | 832 ++++++++++++++++++++++++++--------- 1 file changed, 623 insertions(+), 209 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 4c7cbdd19e..ee33f1d7d1 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8072,8 +8072,11 @@ Link containing double quotes and spaces File containing double quotes and spaces !! wikitext [[File:Cool "Gator".png]] +!! html/php+tidy +

File:Cool "Gator".png +

!! html/parsoid -

+

File:Cool "Gator".png

!! end !! test @@ -8104,6 +8107,7 @@ Link containing double-single-quotes '' in text embedded in italics (T6598 sanit

!! end +## FIXME: Title part of filename is interpreted in php !! test Link with double quotes in title part (literal) and alternate part (interpreted) !! wikitext @@ -8121,7 +8125,7 @@ Link with double quotes in title part (literal) and alternate part (interpreted)

Pentecoste

!! html/parsoid -

+

File:Denys Savchenko ''Pentecoste''.jpg

''Pentecoste''

Pentecoste

Pentecoste

@@ -8141,10 +8145,10 @@ Broken image links with HTML captions (T41700) abc

!! html/parsoid -

- - -

+

File:Nonexistent +File:Nonexistent +File:Nonexistent +File:Nonexistent

!! end !! test @@ -8167,6 +8171,15 @@ Plain link to URL with link text

!! end +!! test +Plain link to URL containing special characters, with link text (see T213950). +!! wikitext +[[http://www.example.com/?q=%7Babc%7D Link text]] +!! html +

[Link text] +

+!! end + !! test Plain link to protocol-relative URL !! wikitext @@ -11562,7 +11575,7 @@ This is a test template with parameter
!! html/parsoid -

This is a test template with parameter

link caption
+

This is a test template with parameter

File:Noimage.png
link caption
!! end !! article @@ -11961,13 +11974,16 @@ Template:Includes3

!! end +# FIXME: Parsoid's markup for this is quite ugly. !! test and on a page !! wikitext Foozarbar -!! html +!! html/php+tidy

Foozar

+!! html/parsoid +

Foozar

!! end !! test @@ -13088,6 +13104,14 @@ Templates: Links: 5. Nested templates (only outermost template should be marked)

!!end +!! test +File with template filename +!! wikitext +[[File:{{echo|Foobar.jpg}}]] +!! html/parsoid +

+!! end + !!test Templates: HTML Tag: 1. Generation of HTML attr. key !! wikitext @@ -14460,7 +14484,7 @@ Right-aligned image !! html/php
Foobar.jpg
!! html/parsoid -
+
!! end !! test @@ -14584,7 +14608,7 @@ parsoid=wt2html,wt2wt,html2html !! html/php
This is a caption
!! html/parsoid -
This is a caption
+
This is a caption
!! end !! test @@ -14640,8 +14664,8 @@ thumbsize=220 123

Foobar.jpg

456

!! html/parsoid

123456

-

123

456 -123

456

+

123

456 +123

456

!! end !! test @@ -14865,6 +14889,19 @@ thumbsize=220 !! html/php
Title
!! html/parsoid +
Title
+!! end + +!! test +Manually-specified thumbnail image (backwards compat) +!! options +thumbsize=220 +parsoid=html2wt +!! wikitext +[[File:Foobar.jpg|thumbnail=Thumb.png|Title]] +!! html/php +
Title
+!! html/parsoid
Title
!! end @@ -14878,7 +14915,7 @@ parsoid=wt2html,wt2wt,html2html !! html/php
Title
!! html/parsoid -
Title
+
Title
!! end !! test @@ -14891,7 +14928,7 @@ parsoid=wt2html,wt2wt,html2html !! html/php
Title
!! html/parsoid -
Title
+
Title
!! end !! test @@ -14904,7 +14941,7 @@ parsoid=wt2html,wt2wt,html2html !! html/php
Title
!! html/parsoid -
Title
+
Title
!! end !! test @@ -14917,7 +14954,7 @@ parsoid=wt2html,wt2wt,html2html !! html/php
alttext
Title
!! html/parsoid -
alttext
Title
+
alttext
Title
!! end !! test @@ -14957,7 +14994,7 @@ Image with wiki markup in implicit alt !! html/parsoid

-

testing bold in alt

+

testing bold in alt

!! end !! test @@ -14967,15 +15004,11 @@ Alt image option should handle most kinds of wikitext without barfing !! html/php
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 Ampersand in alt attribute (T206940) -!! options -parsoid = { - "nativeGallery": true -} !! wikitext [[File:Foobar.jpg|alt=&]] @@ -14994,19 +15027,53 @@ File:Foobar.jpg|alt=&
!! html/parsoid -

&

+

&

-