From: Mark A. Hershberger
Date: Sat, 18 Dec 2010 21:45:44 +0000 (+0000)
Subject: * re r76385 Add parser tests for $wgExternalLinkTarget on images
X-Git-Tag: 1.31.0-rc.0~33238
X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=a36ae22c6b44b56f2f134d1ace6f1edd912cdcd5;p=lhc%2Fweb%2Fwiklou.git
* re r76385 Add parser tests for $wgExternalLinkTarget on images
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index daccf7ccf4..75bc50dcfb 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -3361,6 +3361,28 @@ Image with link parameter, URL target
!! end
+!! test
+Image with link parameter, wgExternalLinkTarget
+!! input
+[[Image:foobar.jpg|link=http://example.com/]]
+!! config
+wgExternalLinkTarget='foobar'
+!! result
+
+
+!! end
+
+!! test
+Image with link parameter, wgExternalLinkTarget, unnamed parameter
+!! input
+[[Image:foobar.jpg|link=http://example.com/|Title]]
+!! config
+wgExternalLinkTarget='foobar'
+!! result
+
+
+!! end
+
!! test
Image with empty link parameter
!! input