From f73612f6a272d36aa3ed3037b715a168370a13ae Mon Sep 17 00:00:00 2001 From: Wil Mahan Date: Fri, 15 Oct 2004 17:50:08 +0000 Subject: [PATCH] Add tests for links inside section headings and inside links, and explicitly set the title for some tests now that Skin.php used by the parser has been corrected to longer use the $wgTitle global. --- maintenance/parserTests.txt | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index f864b1f4f5..de50f9f73d 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -917,6 +917,15 @@ title=[[Main Page]]

!! end +!! test + inside a link +!! input +[[Main Page]] [[Main Page|the main page [it's not very good]]] +!! result +

Main Page the main page [it's not very good] +

+!! end + ### ### Interwiki links ### @@ -1603,6 +1612,8 @@ es:Alimento fr:Nourriture zh:食品 ### !! test Basic section headings +!! options +title=[[Parser test script]] !! input == Headline 1 == Some text @@ -1625,6 +1636,8 @@ Blah blah !! test Section headings with TOC +!! options +title=[[Parser test script]] !! input == Headline 1 == === Subheadline 1 === @@ -1671,6 +1684,8 @@ Some text !! test Resolving duplicate section names +!! options +title=[[Parser test script]] !! input == Foo bar == ==Foo bar== @@ -1689,7 +1704,8 @@ Template:sections !! test Template with sections, __NOTOC__ -!! options title=[[Parser test script]] +!! options +title=[[Parser test script]] !! input __NOTOC__ ==Section 0== @@ -1715,6 +1731,17 @@ __NOEDITSECTION__ !! end +!! test +Link inside a section heading +!! options +title=[[Parser test script]] +!! input +==Section with a [[Main Page|link]] in it== +!! result +

Section with a link in it

+ +!! end + TODO: more images more tables -- 2.20.1