Parser test case for bug 5024
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 18 Feb 2006 01:31:30 +0000 (01:31 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 18 Feb 2006 01:31:30 +0000 (01:31 +0000)
maintenance/parserTests.txt

index 9164b10..e474778 100644 (file)
@@ -2174,7 +2174,6 @@ pst
 This is a test template with parameter "something else"
 !! end
 
-
 !! article
 Template:nowikitest
 !! text
@@ -2224,6 +2223,36 @@ Template:dangerous
 </p>
 !! end
 
+!! test
+pre-save transform: comment containing extension (bug 5024)
+!! options
+pst
+!! input
+<!-- <gallery>data</gallery> -->
+!!result
+<!-- <gallery>data</gallery> -->
+!!end
+
+!! test
+pre-save transform: comment containing nowiki
+!! options
+pst
+!! input
+<!-- <nowiki>data</nowiki> -->
+!!result
+<!-- <nowiki>data</nowiki> -->
+!!end
+
+!! test
+pre-save transform: comment containing math
+!! options
+pst
+!! input
+<!-- <math>data</math> -->
+!!result
+<!-- <math>data</math> -->
+!!end
+
 
 ###
 ### Message transform tests