Add regression tests for bug 3298 (<noinclude> etc in subst), and tests for 4926...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 10 Jun 2006 00:00:45 +0000 (00:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 10 Jun 2006 00:00:45 +0000 (00:00 +0000)
maintenance/parserTests.txt

index f40e31a..c4f9446 100644 (file)
@@ -2604,6 +2604,26 @@ pst
 <!-- <math>data</math> -->
 !!end
 
+!! test
+pre-save transform: <noinclude> in subst (bug 3298)
+!! options
+pst
+!! input
+{{subst:Includes}}
+!! result
+Foobar
+!! end
+
+!! test
+pre-save transform: <onlyinclude> in subst (bug 3298)
+!! options
+pst
+!! input
+{{subst:Includes2}}
+!! result
+Foo
+!! end
+
 
 ###
 ### Message transform tests
@@ -2628,6 +2648,27 @@ msg
 ''test''
 !! end
 
+!! test
+message transform: <noinclude> in transcluded template (bug 4926)
+!! options
+msg
+!! input
+{{Includes}}
+!! result
+Foobar
+!! end
+
+!! test
+message transform: <onlyinclude> in transcluded template (bug 4926)
+!! options
+msg
+!! input
+{{Includes2}}
+!! result
+Foo
+!! end
+
+
 ###
 ### Images
 ###