From 7b7cb49c952ce7b9749a55d5171a96ac09e4586e Mon Sep 17 00:00:00 2001 From: Amire80 Date: Fri, 11 Nov 2016 11:19:05 +0200 Subject: [PATCH] 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 --- tests/parser/parserTests.txt | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) 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 #-------------------------------------------------------------------- -- 2.20.1