Bug 1466079 [wpt PR 11292] - Fix bugs in split-up encoding tests, a=testonly
[gecko.git] / testing / web-platform / tests / encoding / legacy-mb-tchinese / big5 / big5-encode-href-errors-han.html
blobafa99a4cf58bccd831a5f8ea3f364d44040b8eb9
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="big5"> <!-- test breaks if the server overrides this -->
5 <title>Big5 encoding errors (href, han)</title>
6 <meta name="timeout" content="long">
7 <meta name="variant" content="?1-1000">
8 <meta name="variant" content="?1001-2000">
9 <meta name="variant" content="?2001-3000">
10 <meta name="variant" content="?3001-4000">
11 <meta name="variant" content="?4001-5000">
12 <meta name="variant" content="?5001-6000">
13 <meta name="variant" content="?6001-7000">
14 <meta name="variant" content="?7001-8000">
15 <meta name="variant" content="?8001-9000">
16 <meta name="variant" content="?9001-10000">
17 <meta name="variant" content="?10001-11000">
18 <meta name="variant" content="?11001-12000">
19 <meta name="variant" content="?12001-13000">
20 <meta name="variant" content="?13001-14000">
21 <meta name="variant" content="?14001-last">
22 <script src="/resources/testharness.js"></script>
23 <script src="/resources/testharnessreport.js"></script>
24 <script src="/common/subset-tests.js"></script>
25 <script src="big5_index.js"></script>
26 <script src="big5-encoder.js"></script>
27 <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
28 <link rel="help" href="https://encoding.spec.whatwg.org/#big5">
29 <meta name="assert" content="The browser produces percent-escaped character references when writing characters to an href value and encoding han characters that are not in the gbk encoding.">
30 <style>
31 iframe { display:none }
32 form { display:none }
33 </style>
34 </head>
35 <body>
36 <div id="log"></div>
37 <script src="../../resources/ranges.js"></script>
38 <script>
39 var errors = true;
40 var encoder = big5Encoder;
41 var ranges = rangesHan;
42 var separator = ",";
43 function expect(result, codepoint) {
44 return "%26%23" + codepoint + "%3B";
46 </script>
47 <script src="../../resources/encode-href-common.js"></script>
48 </body>
49 </html>