X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=3fd61588bb5247ebef0d6590ebb8b17bbe84a0e8;hb=f2d4db9d03a984d998db9044e63e548597511eb6;hp=d2fbd8d302b6ae7de61dc2250f44277ad89c423c;hpb=72fd6adca712c2805b0c47371f16a8cfca0e5c5d;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index d2fbd8d302..3fd61588bb 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2359,6 +2359,17 @@ parsoid=wt2html,html2html
ho
!! end +!! test +P-wrapping non-breaking spaces +!! wikitext +Â +!! html/php+tidy ++
+!! html/parsoid +Â
+!! end + ### ### Preformatted text ### @@ -6273,8 +6284,6 @@ parsoid=wt2html !! end -# Note that the PHP parser output appears to be broken when the table -# end tag is not separated by a space from the style attribute !! test A table with stray table end tags on start tag line (wt2html) !! options @@ -6294,13 +6303,13 @@ parsoid=wt2html |foo |} !! html/php+tidy -foo |
foo |
<div title /> -<div title/> -
-<div title=bar /> -<div title=bar/> -
- -
-
+
@@ -9721,6 +9727,18 @@ Handling html with a br self-closing tag
, not China
!! end +!! test +Explicit definition of language variant alternatives (BCP 47 codes) +!! options +language=zh variant=zh-tw +!! wikitext +-{zh:China;zh-Hant-TW:Taiwan}-, not China +!! html/php +Taiwan, not China +
+!! html/parsoid +, not China
+!! end + !! test Filter syntax for language variants !! options @@ -24429,7 +24513,7 @@ comment title=[[Main Page]] !! wikitext /* External links */ removed bogus entries !! html/php -âExternal linksâ: removed bogus entries +ââExternal links: removed bogus entries !!end !! test @@ -24439,7 +24523,7 @@ comment title=[[Main Page]] !! wikitext pre-comment text /* External links */ removed bogus entries !! html/php -pre-comment text âExternal linksâ: removed bogus entries +pre-comment text ââExternal links: removed bogus entries !!end !! test @@ -24449,9 +24533,29 @@ comment local title=[[Main Page]] !! wikitext /* External links */ removed bogus entries !! html/php -âExternal linksâ: removed bogus entries +ââExternal links: removed bogus entries !!end +!! test +Edit comment with section link that has a link in it +!! options +comment local title=[[Main Page]] +!! wikitext +/* [[A link]] */ +!! html/php +ââ[[A link]] +!! end + +!! test +Edit comment with section link that has a template in it +!! options +comment local title=[[Main Page]] +!! wikitext +/* {{foobar|param}} */ +!! html/php +ââ{{foobar|param}} +!! end + !! test Edit comment with subpage link (T16080) !! options @@ -24560,7 +24664,7 @@ title=[[Main Page]] !! wikitext /* __hello__world__ */ !! html/php -â__hello__world__â +ââ__hello__world__ !! end !! test @@ -28915,6 +29019,27 @@ Image: Invalid title as link !! end +!! test +Various link types in alt and link options +!! wikitext +[[File:Foobar.jpg|link=[[Main Page]]|alt=[[Main Page]]|caption]] + +[[File:Foobar.jpg|link=[[Media:Thumb.png]]|alt=[[Media:Thumb.png]]|caption]] + +[[File:Foobar.jpg|link=[[wikipedia:Foo]]|alt=[[wikipedia:Foo]]|caption]] +!! html/php+tidy + +!! html/parsoid + + + + + +!! end + !! test Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does) !! options @@ -30931,6 +31056,170 @@ parsoid={ foo !! end +!! test +Ignore empty when scrubWikitext is false +!! options +parsoid={ + "modes": ["html2wt"], + "scrubWikitext": false +} +!! html/parsoid +a
b
+a
+ +b
+a
+ + + + +b
+!! wikitext +a +
b +
+a +
b +
+a +
b +
+!! end + +!! test +Normalize empty paragraphs to HTML form that html2wt expects +!! options +parsoid={ + "modes": ["html2wt"], + "scrubWikitext": true +} +!! html/parsoid +a
b
+a
+ +b
+a
+ + + + +b
+a
+ +a +
+b
+
a +
+b
+
a +
+
+
b +
+a +
+
foo
+
+
+ |
+
foobar
foobar
+ + +!! wikitext +{{SomeTemplate1|boo}}{{SomeTemplate2|booboo}} +!! end + !! test Escape nowiki DOM elements !! options