Add parser tests for template-generated table cell with attributes
authorGabriel Wicke <gwicke@wikimedia.org>
Thu, 8 Nov 2012 19:49:02 +0000 (11:49 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Thu, 8 Nov 2012 19:49:32 +0000 (11:49 -0800)
Inspired by Parsoid commit https://gerrit.wikimedia.org/r/#/c/30794/.

Change-Id: Ieb03bd6149bf00c822ce3884a0c3517416905240

tests/parser/parserTests.txt

index 18e0ee8..7ca78a7 100644 (file)
@@ -95,6 +95,13 @@ Template:attr_str
 {{{1}}}="{{{2}}}"
 !! endarticle
 
+!! article
+Template:table_attribs
+!! text
+<noinclude>
+|</noinclude>style="color: red"| Foo
+!! endarticle
+
 ###
 ### Basic tests
 ###
@@ -2716,6 +2723,19 @@ Indented table markup mixed with indented pre content (proposed in bug 6200)
 
 !! end
 
+!! test
+Template-generated table cell attributes and cell content
+!! input
+{|
+|{{table_attribs}}
+|}
+!! result
+<table>
+<tr>
+<td style="color: red"> Foo
+</td></tr></table>
+
+!! end
 
 ###
 ### Internal links