From b22b83c0a084df6a33581fe147450c44568d87cb Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 2 Feb 2010 15:24:08 +0000 Subject: [PATCH] Parser tests for behaviour of subst: and safesubst: after r61710 --- maintenance/parserTests.txt | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) 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 -- 2.20.1