jenkins-bot has submitted this change and it was merged.

Change subject: Add new parserTests for image attributes coming from templates.
......................................................................


Add new parserTests for image attributes coming from templates.

Bug: 49400
Change-Id: I49e92f5ddf9ee32347e6b738329f16f9ca129888
---
M tests/parser/parserTests.txt
1 file changed, 16 insertions(+), 0 deletions(-)

Approvals:
  Subramanya Sastry: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index e7cd420..5e5931a 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -127,6 +127,13 @@
 !! endarticle
 
 !! article
+Template:image_attribs
+!! text
+<noinclude>
+[[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
+!! endarticle
+
+!! article
 A?b
 !! text
 Weirdo titles!
@@ -7882,6 +7889,15 @@
 !! end
 
 !! test
+Image with attributes from template.
+!! input
+[[Image:foobar.jpg|{{image_attribs}}]]
+!! result
+<div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" 
title="Caption text"><img alt="Caption text" 
src="http://example.com/images/3/3a/Foobar.jpg"; width="1941" height="220" 
/></a></div>
+
+!! end
+
+!! test
 Image with link tails
 !! input
 123[[Image:foobar.jpg]]456

-- 
To view, visit https://gerrit.wikimedia.org/r/76821
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I49e92f5ddf9ee32347e6b738329f16f9ca129888
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to