OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <meta charset=big5> <!-- test breaks if the server overrides this --> | 2 <meta charset=big5> <!-- test breaks if the server overrides this --> |
3 <script src=../../../resources/testharness.js></script> | 3 <script src=../../../resources/testharness.js></script> |
4 <script src=../../../resources/testharnessreport.js></script> | 4 <script src=../../../resources/testharnessreport.js></script> |
5 <div id=log></div> | 5 <div id=log></div> |
6 <script> | 6 <script> |
7 function encode(input, output, desc) { | 7 function encode(input, output, desc) { |
8 test(function() { | 8 test(function() { |
9 var a = document.createElement("a"); // <a> uses document encoding for URL'
s query | 9 var a = document.createElement("a"); // <a> uses document encoding for URL'
s query |
10 // Append and prepend X to test for off-by-one errors | 10 // Append and prepend X to test for off-by-one errors |
(...skipping 13 matching lines...) Expand all Loading... |
24 encode("\uFFE2", "%C8%CD", "The lowest-pointer character after the range of 41
unmapped pointers"); | 24 encode("\uFFE2", "%C8%CD", "The lowest-pointer character after the range of 41
unmapped pointers"); |
25 encode("\u79D4", "%FE%FE", "The last character in the index"); | 25 encode("\u79D4", "%FE%FE", "The last character in the index"); |
26 // not in index | 26 // not in index |
27 encode("\u2603", "%26%239731%3B", "The canonical BMP test character that is not
in the index"); | 27 encode("\u2603", "%26%239731%3B", "The canonical BMP test character that is not
in the index"); |
28 encode("\uD83D\uDCA9", "%26%23128169%3B", "The canonical astral test character
that is not in the index"); | 28 encode("\uD83D\uDCA9", "%26%23128169%3B", "The canonical astral test character
that is not in the index"); |
29 // duplicate low bits | 29 // duplicate low bits |
30 encode("\uD840\uDFB5", "%FDj", "A Plane 2 character whose low 16 bits match a B
MP character that has a lower pointer"); | 30 encode("\uD840\uDFB5", "%FDj", "A Plane 2 character whose low 16 bits match a B
MP character that has a lower pointer"); |
31 // prefer last | 31 // prefer last |
32 encode("\u2550", "%F9%F9", "A duplicate-mapped code point that prefers the high
est pointer in the encoder"); | 32 encode("\u2550", "%F9%F9", "A duplicate-mapped code point that prefers the high
est pointer in the encoder"); |
33 </script> | 33 </script> |
OLD | NEW |