From 3e06484c4744fb66878a7a066d38fa5c6a8884b0 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Tue, 30 Jul 2013 14:58:47 -0400 Subject: [PATCH] Add new parserTests for table cell attributes coming from templates. Bug: 44498 Change-Id: I2b46dea4c075e9eac41dfceac40097ebfb3f8700 --- tests/parser/parserTests.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 93377c2e4d..c79286239f 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -120,6 +120,12 @@ Template:table_attribs |style="color: red"| Foo !! endarticle +!! article +Template:table_cells +!! text +{{table_attribs}} || Bar || Baz +!! endarticle + !! article A?b !! text @@ -3850,6 +3856,36 @@ Template-generated table cell attributes and cell content !! end +!! test +Template-generated table cell attributes and cell content (2) +!! input +{| +|align=center {{table_attribs}} +|} +!! result + + +
Foo +
+ +!! end + +!! test +Template-generated table cell attributes and cell content (3) +!! input +{| +|align=center {{table_cells}} +|} +!! result + + + + +
Foo Bar Baz +
+ +!! end + !! test Table with row followed by newlines and table heading !! input -- 2.20.1