OLD | NEW |
1 Test the Encoding API's use of encoding names | 1 Test the Encoding API's use of encoding names |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 | 6 |
7 name = "utf-8" | 7 name = "utf-8" |
8 PASS new TextDecoder("unicode-1-1-utf-8").encoding is "utf-8" | 8 PASS new TextDecoder("unicode-1-1-utf-8").encoding is "utf-8" |
9 PASS new TextDecoder("utf-8").encoding is "utf-8" | 9 PASS new TextDecoder("utf-8").encoding is "utf-8" |
10 PASS new TextDecoder("utf8").encoding is "utf-8" | 10 PASS new TextDecoder("utf8").encoding is "utf-8" |
11 | 11 |
12 name = "ibm866" | 12 name = "ibm866" |
13 FAIL new TextDecoder("866").encoding should be ibm866. Threw exception TypeError
: Type error | 13 FAIL new TextDecoder("866").encoding should be ibm866. Threw exception TypeError
: Failed to construct 'TextDecoder': The encoding label provided ('866') is inva
lid. |
14 FAIL new TextDecoder("cp866").encoding should be ibm866. Threw exception TypeErr
or: Type error | 14 FAIL new TextDecoder("cp866").encoding should be ibm866. Threw exception TypeErr
or: Failed to construct 'TextDecoder': The encoding label provided ('cp866') is
invalid. |
15 FAIL new TextDecoder("csibm866").encoding should be ibm866. Threw exception Type
Error: Type error | 15 FAIL new TextDecoder("csibm866").encoding should be ibm866. Threw exception Type
Error: Failed to construct 'TextDecoder': The encoding label provided ('csibm866
') is invalid. |
16 FAIL new TextDecoder("ibm866").encoding should be ibm866. Threw exception TypeEr
ror: Type error | 16 FAIL new TextDecoder("ibm866").encoding should be ibm866. Threw exception TypeEr
ror: Failed to construct 'TextDecoder': The encoding label provided ('ibm866') i
s invalid. |
17 | 17 |
18 name = "iso-8859-2" | 18 name = "iso-8859-2" |
19 PASS new TextDecoder("csisolatin2").encoding is "iso-8859-2" | 19 PASS new TextDecoder("csisolatin2").encoding is "iso-8859-2" |
20 PASS new TextDecoder("iso-8859-2").encoding is "iso-8859-2" | 20 PASS new TextDecoder("iso-8859-2").encoding is "iso-8859-2" |
21 PASS new TextDecoder("iso-ir-101").encoding is "iso-8859-2" | 21 PASS new TextDecoder("iso-ir-101").encoding is "iso-8859-2" |
22 PASS new TextDecoder("iso8859-2").encoding is "iso-8859-2" | 22 PASS new TextDecoder("iso8859-2").encoding is "iso-8859-2" |
23 PASS new TextDecoder("iso88592").encoding is "iso-8859-2" | 23 PASS new TextDecoder("iso88592").encoding is "iso-8859-2" |
24 PASS new TextDecoder("iso_8859-2").encoding is "iso-8859-2" | 24 PASS new TextDecoder("iso_8859-2").encoding is "iso-8859-2" |
25 PASS new TextDecoder("iso_8859-2:1987").encoding is "iso-8859-2" | 25 PASS new TextDecoder("iso_8859-2:1987").encoding is "iso-8859-2" |
26 PASS new TextDecoder("l2").encoding is "iso-8859-2" | 26 PASS new TextDecoder("l2").encoding is "iso-8859-2" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 name = "utf-16le" | 300 name = "utf-16le" |
301 PASS new TextDecoder("utf-16").encoding is "utf-16le" | 301 PASS new TextDecoder("utf-16").encoding is "utf-16le" |
302 PASS new TextDecoder("utf-16le").encoding is "utf-16le" | 302 PASS new TextDecoder("utf-16le").encoding is "utf-16le" |
303 | 303 |
304 name = "x-user-defined" | 304 name = "x-user-defined" |
305 PASS new TextDecoder("x-user-defined").encoding is "x-user-defined" | 305 PASS new TextDecoder("x-user-defined").encoding is "x-user-defined" |
306 PASS successfullyParsed is true | 306 PASS successfullyParsed is true |
307 | 307 |
308 TEST COMPLETE | 308 TEST COMPLETE |
309 | 309 |
OLD | NEW |