Add parser tests for decoding of entities in indicator names
authorFomafix <fomafix@googlemail.com>
Fri, 30 Jun 2017 04:02:10 +0000 (06:02 +0200)
committerFomafix <fomafix@googlemail.com>
Tue, 25 Jul 2017 20:12:54 +0000 (22:12 +0200)
This change adds parser tests that test the current behavior of decoding
HTML entities in indicator names when generating the indicator IDs as
described in T104196.

The parser tests currently does not compare the generated HTML with
the ID.

With I88e8e2077e the tests get changed to the new behavior.

Change-Id: Id561c4a00ece09b4db381edfe0d5f98120cacf5e

tests/parser/parserTests.txt

index 29f42b3..f8ba742 100644 (file)
@@ -28375,3 +28375,14 @@ Decoding of HTML entities in headings and links for IDs and link fragments (T103
 <p><a href="#A.26B.26C.26D.26amp.3BE">#A&amp;B&amp;C&amp;amp;D&amp;amp;amp;E</a>
 </p>
 !! end
+
+!! test
+Decoding of HTML entities in indicator names for IDs (T104196)
+!! options
+showindicators
+!! wikitext
+<indicator name="1&2&amp;3&amp;amp;4&amp;amp;amp;5">Indicator</indicator>
+!! html/php
+1&2&3&amp;4&amp;amp;5=Indicator
+
+!! end