Cscott has uploaded a new change for review. https://gerrit.wikimedia.org/r/76758
Change subject: Add new parserTests for table cell attributes coming from templates. ...................................................................... Add new parserTests for table cell attributes coming from templates. Bug: 44498 Change-Id: I2b46dea4c075e9eac41dfceac40097ebfb3f8700 --- M tests/parser/parserTests.txt 1 file changed, 34 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/58/76758/1 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 93377c2..de441a6 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -121,6 +121,12 @@ !! endarticle !! article +Template:table_cells +!! text +{{table_attribs}} | Bar | Baz +!! endarticle + +!! article A?b !! text Weirdo titles! @@ -3851,6 +3857,34 @@ !! 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 | Bar | Baz +</td></tr></table> + +!! end + +!! test Table with row followed by newlines and table heading !! input {| -- To view, visit https://gerrit.wikimedia.org/r/76758 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2b46dea4c075e9eac41dfceac40097ebfb3f8700 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Cscott <canan...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits