From 73f56be199a12d13c8db51c0022bb93b1d073068 Mon Sep 17 00:00:00 2001 From: Wil Mahan Date: Tue, 12 Oct 2004 00:17:13 +0000 Subject: [PATCH] Add the new "longdesc" attribute to all image tests, and fix a test that is currently broken (in a right-aligned image with no caption, the title/alt text should not be "right"). --- maintenance/parserTests.txt | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index d8d84973e5..9e27666b8c 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1,6 +1,7 @@ # MediaWiki Parser test cases # Some taken from http://meta.wikimedia.org/wiki/Parser_testing # All (C) their respective authors and released under the GPL +# $Id$ # # The syntax should be fairly self-explanatory. # @@ -1378,7 +1379,7 @@ Simple image !! input [[Image: test]] !! result -

Image: test +

Image: test

!! end @@ -1387,7 +1388,7 @@ Right-aligned image !! input [[Image:test|right]] !! result -
right
+
!! end @@ -1396,7 +1397,7 @@ Image with caption !! input [[Image:test|right|Caption text]] !! result -
Caption text
+
Caption text
!! end @@ -1405,7 +1406,7 @@ Image with frame and link !! input [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]] !! result -
This is a test image
This is a test image Main Page
+
This is a test image
This is a test image Main Page
!! end @@ -1423,7 +1424,7 @@ Frameless image caption with a free URL !! input [[Image:foo|http://example.com]] !! result -

http://example.com +

http://example.com

!! end @@ -1442,7 +1443,7 @@ BUG 648: Frameless image caption with a link !! input [[Image:foo|text with a [[link]] in it]] !! result -

text with a link in it +

text with a link in it

!! end @@ -1451,7 +1452,7 @@ Escape HTML special chars in image alt text !! input [[Image:example.jpg|& < > "]] !! result -

& < > " +

& < > "

!! end @@ -1460,7 +1461,7 @@ BUG 499: Alt text should have Ӓ, not &1234; !! input [[Image:image.jpg|♀]] !! result -

♀ +

♀

!! end @@ -1478,7 +1479,7 @@ 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!
+
Missing image
Bar.jpeg
This is a caption with another image inside it!
!! end -- 2.20.1