Add a parser test for r61816
authorConrad Irwin <conrad@users.mediawiki.org>
Tue, 2 Feb 2010 15:03:08 +0000 (15:03 +0000)
committerConrad Irwin <conrad@users.mediawiki.org>
Tue, 2 Feb 2010 15:03:08 +0000 (15:03 +0000)
maintenance/parserTests.txt

index fba48dd..61c190e 100644 (file)
@@ -3269,6 +3269,15 @@ Add test with existing image page
 </p>
 !! end
 
+!! test
+bug 18784  Link to non-existant image page with caption should use caption as link text
+!! input
+[[:Image:test|caption]]
+!! result
+<p><a href="/index.php?title=File:Test&amp;action=edit&amp;redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
+</p>
+!! end
+
 !! test
 Frameless image caption with a free URL
 !! input