From c5620d1813172881349dabeb24a63556650a48cb Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Tue, 30 Jul 2013 16:17:57 -0400 Subject: [PATCH] Add new parserTests for image attributes coming from templates. Bug: 49400 Change-Id: I49e92f5ddf9ee32347e6b738329f16f9ca129888 --- tests/parser/parserTests.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.20.1