From: Conrad Irwin Date: Tue, 2 Feb 2010 15:24:08 +0000 (+0000) Subject: Parser tests for behaviour of subst: and safesubst: after r61710 X-Git-Tag: 1.31.0-rc.0~37976 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=b22b83c0a084df6a33581fe147450c44568d87cb;p=lhc%2Fweb%2Fwiklou.git Parser tests for behaviour of subst: and safesubst: after r61710 --- diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 61c190e5be..4800b56ea9 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -2932,6 +2932,46 @@ pst Foo !! end +!! article +Template:SubstTest +!!text +{{subst:Includes}} +!! endarticle + +!! article +Template:SafeSubstTest +!! text +{{safesubst:Includes}} +!! endarticle + +!! test +bug 22297: safesubst: works during PST +!! options +pst +!! input +{{subst:SafeSubstTest}}{{safesubst:SubstTest}} +!! result +FoobarFoobar +!! end + +!! test +bug 22297: safesubst: works during normal parse +!! input +{{SafeSubstTest}} +!! result +

Foobar +

+!! end + +!! test: +subst: does not work during normal parse +!! input +{{SubstTest}} +!! result +

{{subst:Includes}} +

+!! end + !! test pre-save transform: context links ("pipe trick") !! options