http://www.mediawiki.org/wiki/Special:Code/MediaWiki/61858

Revision: 61858
Author:   conrad
Date:     2010-02-02 15:24:08 +0000 (Tue, 02 Feb 2010)

Log Message:
-----------
Parser tests for behaviour of subst: and safesubst: after r61710

Modified Paths:
--------------
    trunk/phase3/maintenance/parserTests.txt

Modified: trunk/phase3/maintenance/parserTests.txt
===================================================================
--- trunk/phase3/maintenance/parserTests.txt    2010-02-02 15:09:51 UTC (rev 
61857)
+++ trunk/phase3/maintenance/parserTests.txt    2010-02-02 15:24:08 UTC (rev 
61858)
@@ -2932,7 +2932,47 @@
 Foo
 !! end
 
+!! article
+Template:SubstTest
+!!text
+{{<includeonly>subst:</includeonly>Includes}}
+!! endarticle
+
+!! article
+Template:SafeSubstTest
+!! text
+{{<includeonly>safesubst:</includeonly>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
+<p>Foobar
+</p>
+!! end
+
+!! test:
+subst: does not work during normal parse
+!! input
+{{SubstTest}}
+!! result
+<p>{{subst:Includes}}
+</p>
+!! end
+
+!! test
 pre-save transform: context links ("pipe trick")
 !! options
 pst



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to