From: Gabriel Wicke Date: Thu, 8 Nov 2012 19:49:02 +0000 (-0800) Subject: Add parser tests for template-generated table cell with attributes X-Git-Tag: 1.31.0-rc.0~21700^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=e8f880da5f27ad802bcf548d9c90835b52b6a1f6;p=lhc%2Fweb%2Fwiklou.git Add parser tests for template-generated table cell with attributes Inspired by Parsoid commit https://gerrit.wikimedia.org/r/#/c/30794/. Change-Id: Ieb03bd6149bf00c822ce3884a0c3517416905240 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 18e0ee83a7..7ca78a73ae 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -95,6 +95,13 @@ Template:attr_str {{{1}}}="{{{2}}}" !! endarticle +!! article +Template:table_attribs +!! text + +|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 + + +
Foo +
+ +!! end ### ### Internal links