X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=05afefacff3ecc64c3e1ad7146976d20ea0035b2;hb=dc96f656affd1f8fab0ae72b0d96e77055e5b336;hp=0641e0bf4dac247101e950f21b4b8d2b76437a7a;hpb=6f9c30c67b31b12d39f2d54b431e141869895eca;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 0641e0bf4d..afddd78553 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 @@ -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
+
+Goodbye +
+!! html/php +
+'
+Hello
+
+Goodbye +' +array ( +) +
+ +!! end + ### ### (see tests/parser/parserTestsParserHook.php for the extension) ### @@ -24564,6 +24649,17 @@ abc abc

!! end +!! test +Padleft and padright with non-numerical length (T180403) +!! wikitext +{{padleft:abcdef|junk}} +{{padright:abcdef|junk}} +!! html/php +

abcdef +abcdef +

+!! end + !!test Special parser function !! wikitext