From: Kunal Mehta Date: Mon, 28 May 2018 06:05:48 +0000 (-0700) Subject: Complete coverage of Parser::getTemplateDom() X-Git-Tag: 1.34.0-rc.0~5268^2~1 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=99e861920d9b1db2f834fb7b5055c75b8fcc720b;ds=inline Complete coverage of Parser::getTemplateDom() This test covers the branch of code when the $mTplRedirCache is already populated, by using the same template that redirects twice. Change-Id: Ie0ce277c75366b7b060e0da6873175976621aff9 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index bffc56ed11..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 @@ -1861,6 +1867,17 @@ maxtemplatedepth=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