| 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 FAIL new TextDecoder("unicode-1-1-utf-8").encoding should be utf-8. Threw except
ion TypeError: Type error | 8 FAIL new TextDecoder("unicode-1-1-utf-8").encoding should be utf-8. Threw except
ion TypeError: Type error |
| 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" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 name = "shift_jis" | 268 name = "shift_jis" |
| 269 PASS new TextDecoder("csshiftjis").encoding is "shift_jis" | 269 PASS new TextDecoder("csshiftjis").encoding is "shift_jis" |
| 270 PASS new TextDecoder("ms_kanji").encoding is "shift_jis" | 270 PASS new TextDecoder("ms_kanji").encoding is "shift_jis" |
| 271 PASS new TextDecoder("shift-jis").encoding is "shift_jis" | 271 PASS new TextDecoder("shift-jis").encoding is "shift_jis" |
| 272 PASS new TextDecoder("shift_jis").encoding is "shift_jis" | 272 PASS new TextDecoder("shift_jis").encoding is "shift_jis" |
| 273 PASS new TextDecoder("sjis").encoding is "shift_jis" | 273 PASS new TextDecoder("sjis").encoding is "shift_jis" |
| 274 PASS new TextDecoder("windows-31j").encoding is "shift_jis" | 274 PASS new TextDecoder("windows-31j").encoding is "shift_jis" |
| 275 PASS new TextDecoder("x-sjis").encoding is "shift_jis" | 275 PASS new TextDecoder("x-sjis").encoding is "shift_jis" |
| 276 | 276 |
| 277 name = "euc-kr" | 277 name = "euc-kr" |
| 278 FAIL new TextDecoder("cseuckr").encoding should be euc-kr. Was windows-949. | 278 PASS new TextDecoder("cseuckr").encoding is "euc-kr" |
| 279 FAIL new TextDecoder("csksc56011987").encoding should be euc-kr. Was windows-949
. | 279 PASS new TextDecoder("csksc56011987").encoding is "euc-kr" |
| 280 FAIL new TextDecoder("euc-kr").encoding should be euc-kr. Was windows-949. | 280 PASS new TextDecoder("euc-kr").encoding is "euc-kr" |
| 281 FAIL new TextDecoder("iso-ir-149").encoding should be euc-kr. Was windows-949. | 281 PASS new TextDecoder("iso-ir-149").encoding is "euc-kr" |
| 282 FAIL new TextDecoder("korean").encoding should be euc-kr. Was windows-949. | 282 PASS new TextDecoder("korean").encoding is "euc-kr" |
| 283 FAIL new TextDecoder("ks_c_5601-1987").encoding should be euc-kr. Was windows-94
9. | 283 PASS new TextDecoder("ks_c_5601-1987").encoding is "euc-kr" |
| 284 FAIL new TextDecoder("ks_c_5601-1989").encoding should be euc-kr. Was windows-94
9. | 284 PASS new TextDecoder("ks_c_5601-1989").encoding is "euc-kr" |
| 285 FAIL new TextDecoder("ksc5601").encoding should be euc-kr. Was windows-949. | 285 PASS new TextDecoder("ksc5601").encoding is "euc-kr" |
| 286 FAIL new TextDecoder("ksc_5601").encoding should be euc-kr. Was windows-949. | 286 PASS new TextDecoder("ksc_5601").encoding is "euc-kr" |
| 287 FAIL new TextDecoder("windows-949").encoding should be euc-kr. Was windows-949. | 287 PASS new TextDecoder("windows-949").encoding is "euc-kr" |
| 288 | 288 |
| 289 name = "iso-2022-kr" | 289 name = "iso-2022-kr" |
| 290 PASS new TextDecoder("csiso2022kr").encoding is "iso-2022-kr" | 290 PASS new TextDecoder("csiso2022kr").encoding is "iso-2022-kr" |
| 291 PASS new TextDecoder("iso-2022-kr").encoding is "iso-2022-kr" | 291 PASS new TextDecoder("iso-2022-kr").encoding is "iso-2022-kr" |
| 292 | 292 |
| 293 name = "replacement" | 293 name = "replacement" |
| 294 FAIL new TextDecoder("iso-2022-cn").encoding should be replacement. Was iso-2022
-cn. | 294 FAIL new TextDecoder("iso-2022-cn").encoding should be replacement. Was iso-2022
-cn. |
| 295 FAIL new TextDecoder("iso-2022-cn-ext").encoding should be replacement. Was iso-
2022-cn-ext. | 295 FAIL new TextDecoder("iso-2022-cn-ext").encoding should be replacement. Was iso-
2022-cn-ext. |
| 296 | 296 |
| 297 name = "utf-16be" | 297 name = "utf-16be" |
| 298 PASS new TextDecoder("utf-16be").encoding is "utf-16be" | 298 PASS new TextDecoder("utf-16be").encoding is "utf-16be" |
| 299 | 299 |
| 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 |