From: C. Scott Ananian Date: Tue, 30 Jul 2013 20:17:57 +0000 (-0400) Subject: Add new parserTests for image attributes coming from templates. X-Git-Tag: 1.31.0-rc.0~19077^2 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=c5620d1813172881349dabeb24a63556650a48cb;p=lhc%2Fweb%2Fwiklou.git Add new parserTests for image attributes coming from templates. Bug: 49400 Change-Id: I49e92f5ddf9ee32347e6b738329f16f9ca129888 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e7cd420c52..5e5931a201 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -126,6 +126,13 @@ Template:table_cells {{table_attribs}} || Bar || Baz !! endarticle +!! article +Template:image_attribs +!! text + +[[File:foobar.jpg|right|Caption text]] +!! endarticle + !! article A?b !! text @@ -7881,6 +7888,15 @@ Image with empty attribute !! end +!! test +Image with attributes from template. +!! input +[[Image:foobar.jpg|{{image_attribs}}]] +!! result +
Caption text
+ +!! end + !! test Image with link tails !! input