From e8f880da5f27ad802bcf548d9c90835b52b6a1f6 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 8 Nov 2012 11:49:02 -0800 Subject: [PATCH] Add parser tests for template-generated table cell with attributes Inspired by Parsoid commit https://gerrit.wikimedia.org/r/#/c/30794/. Change-Id: Ieb03bd6149bf00c822ce3884a0c3517416905240 --- tests/parser/parserTests.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 -- 2.20.1