From: Brion Vibber Date: Wed, 20 Apr 2005 22:09:28 +0000 (+0000) Subject: Add test cases for bug 1188 and bug 1936: subst problems X-Git-Tag: 1.5.0alpha1~223 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=2ffdcf15052a94c998b06d25bca19439583f7648;p=lhc%2Fweb%2Fwiklou.git Add test cases for bug 1188 and bug 1936: subst problems --- 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 ###