From: Wil Mahan Date: Wed, 6 Oct 2004 19:30:00 +0000 (+0000) Subject: Three more test cases involving images, and give X-Git-Tag: 1.5.0alpha1~1645 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=169610a7b34f387cdfdd88270b188748732ef54e;p=lhc%2Fweb%2Fwiklou.git Three more test cases involving images, and give bug number for bug 648. --- diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 7749ad9dcb..b9e2a57973 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1356,7 +1356,7 @@ Link to image page !! end !! test -Image caption with a free URL +Frameless image caption with a free URL !! input [[Image:foo|http://example.com]] !! result @@ -1373,8 +1373,9 @@ Thumbnail image caption with a free URL !! end +# Pending resolution to bug 368 !! test -Image caption with a link +BUG 648: Frameless image caption with a link !! input [[Image:foo|text with a [[link]] in it]] !! result @@ -1382,6 +1383,15 @@ Image caption with a link

!! end +!! test +Escape HTML special chars in image alt text +!! input +[[Image:example.jpg|& < > "]] +!! result +

& < > " +

+!! end + !! test BUG 499: Alt text should have Ӓ, not &1234; !! input @@ -1391,6 +1401,24 @@ BUG 499: Alt text should have Ӓ, not &1234;

!! end +!! test +Broken image caption with link +!! input +[[Image:Rowan.jpeg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link. +!! result +

[[Image:Rowan.jpeg|thumb|This is a broken caption. But this is just an ordinary link. +

+!! end + +!! test +Image caption containing another image +!! input +[[Image:Bar.jpeg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]] +!! result +
Missing image
Bar.jpeg
This is a caption with another image inside it!
+ +!! end + ### ### Subpages ###