From: Amire80 Date: Fri, 11 Nov 2016 09:19:05 +0000 (+0200) Subject: Add !!html/php parser test for HTML comment after template name X-Git-Tag: 1.31.0-rc.0~4885^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Category:Foo?a=commitdiff_plain;h=7b7cb49c952ce7b9749a55d5171a96ac09e4586e;p=lhc%2Fweb%2Fwiklou.git Add !!html/php parser test for HTML comment after template name I came looking for a test with comments inside transclusions because of bug T89615. I could only find a test for Parsoid and not for PHP, so I added it. Bug: T89615 Change-Id: I4ee3bc75ec86cc6fde6449790b81d287f0ca8345 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index a18e2193fd..9fe30291c9 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2712,10 +2712,12 @@ Templates: Handle empty comment-and-ws-only lines correctly bar}} -!! html +!! html/php

foo bar

+!! html/parsoid +

foo bar

!! end !! test @@ -2731,7 +2733,13 @@ Templates: Handle comments in the target {{echo|foo}} {{echo|foo}} -!!html/parsoid +!! html/php +

foo +

foo +

foo +

foo +

+!! html/parsoid

foo

foo

@@ -2755,7 +2763,13 @@ Templates: Handle comments in parameter names (bug 67657) {{echo|1=foo}} {{echo|1=foo}} -!!html/parsoid +!! html/php +

foo +

foo +

foo +

foo +

+!! html/parsoid

foo

foo

@@ -2769,11 +2783,11 @@ Templates: Handle comments in parameter names (bug 67657) Templates: Other wikitext in parameter names (bug 67657) !! wikitext {{echo|''1''=foo}} -!!html/parsoid -

{{{1}}}

-!!html/php +!! html/php

{{{1}}}

+!! html/parsoid +

{{{1}}}

!!end #--------------------------------------------------------------------