Lines Matching refs:entity

37 // Typical convmap, typical numeric entity-encoded string
58 // Large decimal entity, converting from non-ASCII input encoding
88 test("10 digits for decimal entity", "A", "A", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
89 test("More than 10 digits for decimal entity", "¥", "¥", [0, 0xFFFF, 0, 0…
91 test("8 digits for hex entity", "A", "A", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
92 test("More than 8 digits for hex entity", "Ł", "Ł", [0, 0xFFFF, 0, 0xFFFF],…
96 // An entity can come right after a preceding ampersand
99 // An entity can come right after a preceding &#
105 // The starting & of an entity can terminate a preceding entity
109 // An entity can come right after an entity which is invalid because of being too long
110 test("Starting entity immediately after decimal entity which is too long", "&#10000000000A", "&…
111 test("Starting entity immediately after hex entity which is too long", "&#x111111111A", "&#x111…
114 testNonAscii("Starting entity immediately after valid decimal entity which is just within maximum l…
116 testNonAscii("Starting entity immediately after valid hex entity which is just within maximum lengt…
118 test("Starting entity immediately after invalid decimal entity", "&#0A", "&#0A", [0x1, 0xFFFF, …
119 test("Starting entity immediately after invalid hex entity", "&#x0A", "&#x0A", [0x1, 0xFFFF, 0,…
121 test("Starting entity immediately after too-big decimal entity", "&#7001492542A", "&#7001492542…
123 // If the numeric entity decodes to 0xFFFFFFFF, that should be passed through
125 // that the entity could not be successfully decoded, so if the entity decoded successfully to
126 // 0xFFFFFFFF (-1), it would be treated as an invalid entity
127 test("Regression test (entity which decodes to 0xFFFFFFFF)", "", "?", [0xFFFFFF86, 0xFFFFFFFF,…
159 die("Decimal entity with huge number of digits broken");
163 die("Hexadecimal entity with huge number of digits broken");
192 10 digits for decimal entity: string(13) "A" => string(1) "A" (Good)
193 More than 10 digits for decimal entity: string(14) "¥" => string(14) "¥" …
194 8 digits for hex entity: string(12) "A" => string(1) "A" (Good)
195 More than 8 digits for hex entity: string(13) "Ł" => string(13) "Ł" (Good)
203 Starting entity immediately after decimal entity which is too long: string(18) "&#10000000000A"…
204 Starting entity immediately after hex entity which is too long: string(17) "&#x111111111A" => s…
205 Starting entity immediately after valid decimal entity which is just within maximum length: 0000002…
206 Starting entity immediately after valid hex entity which is just within maximum length: 00000026000…
207 Starting entity immediately after invalid decimal entity: string(8) "&#0A" => string(4) "&#0A" …
208 Starting entity immediately after invalid hex entity: string(9) "&#x0A" => string(5) "&#x0A" (G…
209 Starting entity immediately after too-big decimal entity: string(17) "&#7001492542A" => string(…
210 Regression test (entity which decodes to 0xFFFFFFFF): string(5) "" => string(1) "?" (Good)