From: C. Scott Ananian Date: Tue, 30 Jul 2013 18:58:47 +0000 (-0400) Subject: Add new parserTests for table cell attributes coming from templates. X-Git-Tag: 1.31.0-rc.0~19079^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=3e06484c4744fb66878a7a066d38fa5c6a8884b0;p=lhc%2Fweb%2Fwiklou.git Add new parserTests for table cell attributes coming from templates. Bug: 44498 Change-Id: I2b46dea4c075e9eac41dfceac40097ebfb3f8700 --- 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