From: Brion Vibber Date: Mon, 5 Jun 2006 21:51:34 +0000 (+0000) Subject: Section extraction tests for bugs 2607, 3342, 5272 X-Git-Tag: 1.31.0-rc.0~56891 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=0fb6151c6899e78abf66b01123247a6d2df42b21;p=lhc%2Fweb%2Fwiklou.git Section extraction tests for bugs 2607, 3342, 5272 --- 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 + + # # #