Add new parserTests for table cell attributes coming from templates.
authorC. Scott Ananian <cscott@cscott.net>
Tue, 30 Jul 2013 18:58:47 +0000 (14:58 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Tue, 30 Jul 2013 19:12:43 +0000 (15:12 -0400)
Bug: 44498
Change-Id: I2b46dea4c075e9eac41dfceac40097ebfb3f8700

tests/parser/parserTests.txt

index 93377c2..c792862 100644 (file)
@@ -120,6 +120,12 @@ Template:table_attribs
 |</noinclude>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
+<table>
+<tr>
+<td align="center" style="color: red"> Foo
+</td></tr></table>
+
+!! end
+
+!! test
+Template-generated table cell attributes and cell content (3)
+!! input
+{|
+|align=center {{table_cells}}
+|}
+!! result
+<table>
+<tr>
+<td align="center" style="color: red"> Foo </td>
+<td> Bar </td>
+<td> Baz
+</td></tr></table>
+
+!! end
+
 !! test
 Table with row followed by newlines and table heading
 !! input