r78580 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78579‎ | r78580 | r78581 >
Date:21:45, 18 December 2010
Author:mah
Status:ok
Tags:
Comment:
* re r76385 Add parser tests for $wgExternalLinkTarget on images
Modified paths:
  • /trunk/phase3/tests/parser/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/parser/parserTests.txt
@@ -3362,6 +3362,28 @@
33633363 !! end
33643364
33653365 !! test
 3366+Image with link parameter, wgExternalLinkTarget
 3367+!! input
 3368+[[Image:foobar.jpg|link=http://example.com/]]
 3369+!! config
 3370+wgExternalLinkTarget='foobar'
 3371+!! result
 3372+<p><a href="http://example.com/" target="foobar"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
 3373+</p>
 3374+!! end
 3375+
 3376+!! test
 3377+Image with link parameter, wgExternalLinkTarget, unnamed parameter
 3378+!! input
 3379+[[Image:foobar.jpg|link=http://example.com/|Title]]
 3380+!! config
 3381+wgExternalLinkTarget='foobar'
 3382+!! result
 3383+<p><a href="http://example.com/" title="Title" target="foobar"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
 3384+</p>
 3385+!! end
 3386+
 3387+!! test
33663388 Image with empty link parameter
33673389 !! input
33683390 [[Image:foobar.jpg|link=]]

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r76385* (bug 21364) External links using link= attribute on images now respect $wgE...ialex12:25, 9 November 2010

Status & tagging log