X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=216d7e5d3c2df2abf1b87ec855ceb7b87fd0220e;hp=05afefacff3ecc64c3e1ad7146976d20ea0035b2;hb=99e861920d9b1db2f834fb7b5055c75b8fcc720b;hpb=c004cfc116eb8c677c346f3db561fc3593a8fd99 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 05afefacff..216d7e5d3c 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -62,6 +62,12 @@ Template:Foo FOO !!endarticle +!! article +Template:redirect to foo +!! text +#REDIRECT [[Template:Foo]] +!! endarticle + !! article Template:Blank !! text @@ -109,6 +115,14 @@ Template:echo {{{1}}} !! endarticle +!! article +Template:echo3 +!! text +{{{1}}} +{{{1}}} +{{{1}}} +!! endarticle + // For Serbian; localize Template namespace !! article Шаблон:Echo @@ -128,6 +142,12 @@ Template:echo_with_div
{{{1}}}
!! endarticle +!! article +Template:echo with depth +!! text +{{echo|{{{1}}}}} +!! endarticle + !! article Template:blank_param !! text @@ -1825,6 +1845,39 @@ b

!! end +!! test +post-expand include size being exceeded +!! options +maxincludesize=20 +!! wikitext +{{echo3|1234567890}} +!! html +

Template:Echo3 +

+!! end + +!! test +max template depth being reached +!! options +maxtemplatedepth=1 +!! wikitext +{{echo with depth|too deep!}} +!! html +

Template recursion depth limit exceeded (1) +

+!! end + +!! test +multiple templates that are redirects +!! wikitext +{{redirect to foo}} +{{redirect to foo}} +!! html +

FOO +FOO +

+!! end + !! test Multiple comments should still parse as SOL-transparent !! options @@ -11504,6 +11557,17 @@ Template from main namespace

!! end +!! test +Template from non-includable namespace +!! options +wgNonincludableNamespaces=10 +!! wikitext +{{echo|uh oh!}} +!! html +

Template:Echo +

+!! end + !! article Template:table !! text @@ -28805,7 +28869,7 @@ foo {{echo|bar [[Category:baz]]}} bar # of the categories in wikitext # Do not remove these characters in edits. # -# As part of the serialization, these bidi characters will get stripped. +# As part of the serialization, these Unicode directional formatting characters will get stripped. !! test RTL (\u200f) and LTR (\u200e) markers around category tags should be stripped !! options @@ -30811,3 +30875,27 @@ header *foo footer !! end + +!! test +Check soft hyphens as entities (­) in displaytitle (T66528) +!! options +showtitle +title=[[Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon]] +!! wikitext +{{DISPLAYTITLE:Lopado­temacho­selacho­galeo­kranio­leipsano­drim­hypo­trimmato­silphio­parao­melito­katakechy­meno­kichl­epi­kossypho­phatto­perister­alektryon­opte­kephallio­kigklo­peleio­lagoio­siraio­baphe­tragano­pterygon}} +!! html/php +Lopado­temacho­selacho­galeo­kranio­leipsano­drim­hypo­trimmato­silphio­parao­melito­katakechy­meno­kichl­epi­kossypho­phatto­perister­alektryon­opte­kephallio­kigklo­peleio­lagoio­siraio­baphe­tragano­pterygon + +!! end + +!! test +Check soft hyphens as Unicode characters (U+00AD) in displaytitle (T66528) +!! options +showtitle +title=[[Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon]] +!! wikitext +{{DISPLAYTITLE:Lopado­temacho­selacho­galeo­kranio­leipsano­drim­hypo­trimmato­silphio­parao­melito­katakechy­meno­kichl­epi­kossypho­phatto­perister­alektryon­opte­kephallio­kigklo­peleio­lagoio­siraio­baphe­tragano­pterygon}} +!! html/php +Lopado­temacho­selacho­galeo­kranio­leipsano­drim­hypo­trimmato­silphio­parao­melito­katakechy­meno­kichl­epi­kossypho­phatto­perister­alektryon­opte­kephallio­kigklo­peleio­lagoio­siraio­baphe­tragano­pterygon + +!! end