diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2008-10-07 00:31:26 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2008-10-07 00:31:26 +0000 |
commit | 86055bdfa4fc7ba1016abc0ffbb20cafbf98436f (patch) | |
tree | 15ea36f348a15f80c68fadcd87752f0ecb9e2ad7 /maintenance/parserTests.txt | |
parent | ff4db4a3eb1b6b2d24927648cb609cfb974fb82f (diff) | |
download | mediawikicore-86055bdfa4fc7ba1016abc0ffbb20cafbf98436f.tar.gz mediawikicore-86055bdfa4fc7ba1016abc0ffbb20cafbf98436f.zip |
Update to r41727 (bug 539) "click" parameter on images.
* Renamed to "link", which seems clearer and less mouse-centric ;)
* Added parser test cases:
3 new PASSING test(s) :)
* Image with link parameter, wiki target [Has never failed]
* Image with link parameter, URL target [Has never failed]
* Image with empty link parameter [Has never failed]
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/41789
Diffstat (limited to 'maintenance/parserTests.txt')
-rw-r--r-- | maintenance/parserTests.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 7631f142323e..9854cff0de17 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -3095,6 +3095,35 @@ Image with caption !! end !! test +Image with link parameter, wiki target +!! input +[[Image:foobar.jpg|link=Target page]] +!! result +<p><a href="/wiki/Target_page" title="Target page"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /></a> +</p> +!! end + +!! test +Image with link parameter, URL target +!! input +[[Image:foobar.jpg|link=http://example.com/]] +!! result +<p><a href="http://example.com/"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /></a> +</p> +!! end + +!! test +Image with empty link parameter +!! input +[[Image:foobar.jpg|link=]] +!! result +<p><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /> +</p> +!! end + + + +!! test Image with frame and link !! input [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]] |