X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=216d7e5d3c2df2abf1b87ec855ceb7b87fd0220e;hp=0641e0bf4dac247101e950f21b4b8d2b76437a7a;hb=99e861920d9b1db2f834fb7b5055c75b8fcc720b;hpb=bc4417a522553d208767c7f42d70b42685c68051 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 0641e0bf4d..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
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 + +!! end + !! article Template:table !! text @@ -18313,6 +18377,27 @@ this is a '''test'''this is a test
!! end +!! test +Parser hook: horizontal rule inside extension tag that outputs+!! wikitext ++Hello + +!! html/php +
+Goodbye ++' +Hello ++ +!! end + ### ### (see tests/parser/parserTestsParserHook.php for the
+Goodbye +' +array ( +) +extension) ### @@ -28784,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 @@ -30790,3 +30875,27 @@ header *foo footer !! end + +!! test +Check soft hyphens as entities () in displaytitle (T66528) +!! options +showtitle +title=[[Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon]] +!! wikitext +{{DISPLAYTITLE:Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon}} +!! html/php +Lopadotemachoselachogaleokranioleipsanodrimhypotrimmatosilphioparaomelitokatakechymenokichlepikossyphophattoperisteralektryonoptekephalliokigklopeleiolagoiosiraiobaphetraganopterygon + +!! 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