From: Wil Mahan Date: Fri, 15 Oct 2004 17:50:08 +0000 (+0000) Subject: Add tests for links inside section headings and X-Git-Tag: 1.5.0alpha1~1533 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=f73612f6a272d36aa3ed3037b715a168370a13ae;p=lhc%2Fweb%2Fwiklou.git 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. --- 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