Section extraction tests for bugs 2607, 3342, 5272
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 5 Jun 2006 21:51:34 +0000 (21:51 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 5 Jun 2006 21:51:34 +0000 (21:51 +0000)
maintenance/parserTests.txt

index 1d33b2d..7662627 100644 (file)
@@ -4780,6 +4780,66 @@ section=2
 !!end
 
 
+!! test
+Section extraction, mixed wiki and html (section 1) (bug 2607)
+!! options
+section=1
+!! input
+<h2>1</h2>
+one
+==2==
+two
+==3==
+three
+!! result
+<h2>1</h2>
+one
+!! end
+
+!! test
+Section extraction, mixed wiki and html (section 2) (bug 2607)
+!! options
+section=2
+!! input
+<h2>1</h2>
+one
+==2==
+two
+==3==
+three
+!! result
+==2==
+two
+!! end
+
+
+!! test
+Section extraction, heading surrounded by <noinclude> (bug 3342)
+!! options
+section=1
+!! input
+<noinclude>==a==</noinclude>
+text
+!! result
+<noinclude>==a==</noinclude>
+text
+!!end
+
+
+!! test
+Section extraction, HTML heading subsections (bug 5272)
+!! options
+section=1
+!! input
+<h2>a</h2>
+<h3>aa</h3>
+<h2>b</h2>
+!! result
+<h2>a</h2>
+<h3>aa</h3>
+!! end
+
+
 #
 #
 #