From 2ffdcf15052a94c998b06d25bca19439583f7648 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 20 Apr 2005 22:09:28 +0000 Subject: [PATCH] Add test cases for bug 1188 and bug 1936: subst problems --- maintenance/parserTests.txt | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 09c1d826ef..c3a730bec0 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1430,6 +1430,41 @@ pst This is a test template with parameter "something else" !! end + +!! article +Template:nowikitest +!! text +'''not wiki''' +!! endarticle + +!! test +pre-save transform: nowiki in subst (bug 1188) +!! options +pst +!! input +{{subst:nowikitest}} +!! result +'''not wiki''' +!! end + + +!! article +Template:commenttest +!! text +This template has in it. +!! endarticle + +!! test +pre-save transform: comment in subst (bug 1936) +!! options +pst +!! input +{{subst:commenttest}} +!! result +This template has in it. +!! end + + ### ### Message transform tests ### -- 2.20.1