X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=02051658ae27f8e4ba9ffdeb66505f108459622c;hp=e8ccd9da8441a66bb92d298e457bc2ed1a45297c;hb=802c199d0bd80ff0f4d730c61fd58cbf08a52d8d;hpb=1a81ba9bcb801de0be82fbd44332dada53800879 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e8ccd9da84..02051658ae 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]]y

xy

!! 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&E == +[[#A&B&C&D&E]] +!! html/php +

A&B&C&D&E[edit]

+

#A&B&C&D&E +

+!! end + +!! test +Decoding of HTML entities in indicator names for IDs (T104196) +!! options +showindicators +!! wikitext +Indicator +!! html/php +1&2&3&4&amp;5=Indicator + +!! end + +!! test +HTML5 ids: fallback to legacy +!! config +wgFragmentMode=[ 'html5', 'legacy' ] +!! wikitext +== Foo bar == + +== foo Bar == + +== Тест == + +== Тест == + +== тест == + +== Hey < # " > % : ' == +[[#Foo bar]] [[#foo Bar]] [[#Тест]] [[#тест]] [[#Hey < # " > % : ']] + +{{anchorencode:💩}} + + +[[#啤酒]] [[#%E5%95%A4%E9%85%92]] + +!! html/php +

Contents

+ +
+ +

Foo bar[edit]

+

foo Bar[edit]

+

Тест[edit]

+

Тест[edit]

+

тест[edit]

+

Hey < # " > % : '[edit]

+

#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 +

Contents

+ +
+ +

Foo bar[edit]

+

foo Bar[edit]

+

Тест[edit]

+

Тест[edit]

+

тест[edit]

+

Hey < # " > % : '[edit]

+

#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 +

Contents

+ +
+ +

Foo bar[edit]

+

foo Bar[edit]

+

Тест[edit]

+

Тест[edit]

+

тест[edit]

+

Hey < # " > % : '[edit]

+

#Foo bar #foo Bar #Тест #тест #Hey < # " > % : ' +

%F0%9F%92%A9 +

#啤酒 #啤酒 +

+!! end