X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=2fa3cb05d0dd9af6c3908ffecf4d2e7d488bc155;hb=0a9c55bfd39e22828f2d152ab71789cef3b0897c;hp=e8ccd9da8441a66bb92d298e457bc2ed1a45297c;hpb=b85207c9c014b4a639cf3ce978cbb5f59799ef2a;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e8ccd9da84..2fa3cb05d0 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -15807,6 +15807,26 @@ parsoid=wt2html !! end +!! test +9. Categories and newlines: should behave properly with linkprefix (T87753) +!! options +language=ar +!! wikitext +foo bar +foo bar +[[تصÙÙÙ:Foo]] +[[تصÙÙÙ:Bar]] +!! html/php +
foo bar +foo bar +
+!! html/parsoid +foo bar +foo bar
+ + +!! end + !! test Category links with multiple namespaces !! wikitext @@ -15854,6 +15874,20 @@ x[[Category:Foo]]yxy
!! end +!! test +Link prefix/suffixes aren't applied to language links +!! options +parsoid=wt2html +language=is +!! wikitext +x[[es:Foo]]y +!! html/php +xy +
+!! html/parsoid +xy
+!! end + !! test Parsoid: Serialize link to file page with colon escape !! options @@ -28364,3 +28398,166 @@ wgRawHtml=1 !! end + +!! test +Decoding of HTML entities in headings and links for IDs and link fragments (T103714) +!! wikitext +== A&B&C&D&amp;E == +[[#A&B&C&D&amp;E]] +!! html/php +#Foo bar #foo Bar #ТеÑÑ #ÑеÑÑ #Hey < # " > % : ' +
%F0%9F%92%A9 +
+!! end + +!! test +HTML5 ids: legacy with a fallback to modern +!! config +wgFragmentMode=[ 'legacy', 'html5' ] +!! wikitext +== Foo bar == + +== foo Bar == + +== ТеÑÑ == + +== ТеÑÑ == + +== ÑеÑÑ == + +== Hey < # " > % : ' == +[[#Foo bar]] [[#foo Bar]] [[#ТеÑÑ]] [[#ÑеÑÑ]] [[#Hey < # " > % : ']] + +{{anchorencode:ð©}} + + +[[#å¤é ]] [[#%E5%95%A4%E9%85%92]] + +!! html/php +#Foo bar #foo Bar #ТеÑÑ #ÑеÑÑ #Hey < # " > % : ' +
.F0.9F.92.A9 +
+!! end + +!! test +HTML5 ids: no legacy +!! config +wgFragmentMode=[ 'html5' ] +!! wikitext +== Foo bar == + +== foo Bar == + +== ТеÑÑ == + +== ТеÑÑ == + +== ÑеÑÑ == + +== Hey < # " > % : ' == +[[#Foo bar]] [[#foo Bar]] [[#ТеÑÑ]] [[#ÑеÑÑ]] [[#Hey < # " > % : ']] + +{{anchorencode:ð©}} + + +[[#å¤é ]] [[#%E5%95%A4%E9%85%92]] + +!! html/php +#Foo bar #foo Bar #ТеÑÑ #ÑеÑÑ #Hey < # " > % : ' +
%F0%9F%92%A9 +
+!! end