parser test cases for bug 10309
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 19 Jun 2007 15:49:46 +0000 (15:49 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 19 Jun 2007 15:49:46 +0000 (15:49 +0000)
maintenance/parserTests.txt

index 8577cc0..aec80cb 100644 (file)
@@ -5832,6 +5832,47 @@ section=1
                    a
 !! end
 
+
+!! test
+Section extraction, <pre> around bogus header (bug 10309)
+!! options
+noxml section=2
+!! input
+== Section One ==
+<pre>
+=======
+</pre>
+
+== Section Two ==
+stuff
+!! result
+== Section Two ==
+stuff
+!! end
+
+!! test
+Section replacement, <pre> around bogus header (bug 10309)
+!! options
+noxml replace=2,"xxx"
+!! input
+== Section One ==
+<pre>
+=======
+</pre>
+
+== Section Two ==
+stuff
+!! result
+== Section One ==
+<pre>
+=======
+</pre>
+
+xxx
+!! end
+
+
+
 !! test
 Handling of &#x0A; in URLs
 !! input