X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=1204dbd7153c73e9a1b654ea0c70bc5277745a73;hb=d3abee55b4c86acac3bd9f54fdf768d45583a0fd;hp=2064e0303d67edf9b969b76920eb4415fc9bbf13;hpb=971a50c4f3c61fb3a4bec60cd712317bb8ddcb9a;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 2064e0303d..1204dbd715 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -16142,6 +16142,68 @@ 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 +10. No regressions on internal links following category (T174639) +!! options +parsoid=wt2html,html2html +!! wikitext +[[Category:Foo]]
a + +[[Foo]]
+!! html/php +
a +Foo
+ +!! html/parsoid +
a + +Foo
+!! end + +# Note that Parsoid differs slightly from PHP due to T175421 +!! test +11. Special case where only newlines separate links (T175416) +!! options +parsoid=wt2html,html2html +!! wikitext +[[Category:Foo]] + +[[Foo]][[es:Alimento]] + +[[Foo]] +!! html/php +


+Foo +

Foo +

+!! html/parsoid + + +

Foo

+ +

Foo

+!! end + !! test Category links with multiple namespaces !! wikitext @@ -16189,6 +16251,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 @@ -29460,3 +29536,17 @@ wgFragmentMode=[ 'html5' ]

#啤酒 #啤酒

!! end + +!! test +T90902: Normalize weird characters in section IDs +!! config +wgFragmentMode=[ 'html5', 'legacy' ] +!! wikitext +== Foo bar == +[[#Foo bar]] + +!! html/php +

Foo bar[edit]

+

#Foo bar +

+!! end