From 0fb6151c6899e78abf66b01123247a6d2df42b21 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 5 Jun 2006 21:51:34 +0000 Subject: [PATCH] Section extraction tests for bugs 2607, 3342, 5272 --- maintenance/parserTests.txt | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 1d33b2dcdb..7662627dc0 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -4780,6 +4780,66 @@ section=2 !!end +!! test +Section extraction, mixed wiki and html (section 1) (bug 2607) +!! options +section=1 +!! input +

1

+one +==2== +two +==3== +three +!! result +

1

+one +!! end + +!! test +Section extraction, mixed wiki and html (section 2) (bug 2607) +!! options +section=2 +!! input +

1

+one +==2== +two +==3== +three +!! result +==2== +two +!! end + + +!! test +Section extraction, heading surrounded by (bug 3342) +!! options +section=1 +!! input +==a== +text +!! result +==a== +text +!!end + + +!! test +Section extraction, HTML heading subsections (bug 5272) +!! options +section=1 +!! input +

a

+

aa

+

b

+!! result +

a

+

aa

+!! end + + # # # -- 2.20.1