From: Wil Mahan Date: Fri, 1 Oct 2004 21:28:07 +0000 (+0000) Subject: Add tests for the just-fixed bug 553, and broken cases regarding X-Git-Tag: 1.5.0alpha1~1705 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=d1aaba0a64104927d1225e9906274b4fab67e221;p=lhc%2Fweb%2Fwiklou.git Add tests for the just-fixed bug 553, and broken cases regarding image captions pointed out by IMSoP. --- diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index abe4107be6..626ca4ba95 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1017,6 +1017,35 @@ Template parameter

!! end +!! article +Template:paramtestnum +!! text +[[{{{1}}}|{{{2}}}]] +!! endarticle + +!! test +Template unnamed parameter +!! input +{{paramtestnum|Main Page|the main page}} +!! result +

the main page +

+!! end + +!! test +BUG 553: link with two variables in a piped link +!! input +{| +|[[{{{1}}}|{{{2}}}]] +|} +!! result + + +
[[{{{1}}}|{{{2}}}]] +
+ +!! end + !! test Magic variable as template parameter !! input @@ -1317,6 +1346,32 @@ Link to image page

!! end +!! test +Image caption with a free URL +!! input +[[Image:foo|http://example.com]] +!! result +

http://example.comhttp://example.com +

+!! end + +!! test +Thumbnail image caption with a free URL +!! input +[[Image:foo|thumb|http://example.com]] +!! result +
Missing image
Foo
+!! end + +!! test +Image caption with a link +!! input +[[Image:foo|text with a [[link]] in it]] +!! result +

text with a link in it +

+!! end + ### ### Subpages ###