| OLD | NEW |
| (Empty) | |
| 1 Test the Encoding API's use of encoding names |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Encoding names are case insensitive |
| 7 PASS new TextDecoder('utf-8').encoding is "utf-8" |
| 8 PASS new TextDecoder('UTF-8').encoding is "utf-8" |
| 9 FAIL new TextDecoder('utf-16').encoding should be utf-16. Was utf-16le. |
| 10 FAIL new TextDecoder('UTF-16').encoding should be utf-16. Was utf-16le. |
| 11 FAIL new TextDecoder('utf-16le').encoding should be utf-16. Was utf-16le. |
| 12 FAIL new TextDecoder('UTF-16LE').encoding should be utf-16. Was utf-16le. |
| 13 PASS new TextDecoder('utf-16be').encoding is "utf-16be" |
| 14 PASS new TextDecoder('UTF-16BE').encoding is "utf-16be" |
| 15 FAIL new TextDecoder('ascii').encoding should be windows-1252. Was us-ascii. |
| 16 FAIL new TextDecoder('ASCII').encoding should be windows-1252. Was us-ascii. |
| 17 FAIL new TextDecoder('iso-8859-1').encoding should be windows-1252. Was iso-8859
-1. |
| 18 FAIL new TextDecoder('ISO-8859-1').encoding should be windows-1252. Was iso-8859
-1. |
| 19 PASS new TextDecoder('utf-8').encoding is "utf-8" |
| 20 FAIL new TextDecoder('UTF-16').encoding should be utf-16. Was utf-16le. |
| 21 PASS new TextDecoder('UTF-16BE').encoding is "utf-16be" |
| 22 FAIL new TextDecoder('iso8859-1').encoding should be windows-1252. Was iso-8859-
1. |
| 23 FAIL new TextDecoder('iso-8859-1').encoding should be windows-1252. Was iso-8859
-1. |
| 24 PASS successfullyParsed is true |
| 25 |
| 26 TEST COMPLETE |
| 27 |
| OLD | NEW |