OLD | NEW |
1 Sanity check the Encoding API's handling of UTF encodings. | 1 This is a testharness.js-based test. |
| 2 PASS utf-8 - encode/decode round trip |
| 3 PASS utf-16le - encode/decode round trip |
| 4 PASS utf-16be - encode/decode round trip |
| 5 PASS UTF-8 encoding (compare against unescape/encodeURIComponent) |
| 6 PASS UTF-8 decoding (compare against decodeURIComponent/escape) |
| 7 Harness: the test ran to completion. |
2 | 8 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 utf-8 - Encode/Decode Range U+0000 - U+10FFFF | |
7 no output means all ranges matched | |
8 | |
9 utf-16le - Encode/Decode Range U+0000 - U+10FFFF | |
10 no output means all ranges matched | |
11 | |
12 utf-16be - Encode/Decode Range U+0000 - U+10FFFF | |
13 no output means all ranges matched | |
14 | |
15 UTF-8 encoding (compare against unescape/encodeURIComponent) | |
16 no output means all ranges matched | |
17 | |
18 UTF-8 decoding (compare against decodeURIComponent/escape) | |
19 no output means all ranges matched | |
20 | |
21 PASS successfullyParsed is true | |
22 | |
23 TEST COMPLETE | |
24 | |
OLD | NEW |