| OLD | NEW |
| 1 Test the Encoding API's use of encoding names | 1 This is a testharness.js-based test. |
| 2 PASS Encoding labels are case-insensitive |
| 3 Harness: the test ran to completion. |
| 2 | 4 |
| 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 PASS new TextDecoder('utf-16').encoding is "utf-16le" | |
| 10 PASS new TextDecoder('UTF-16').encoding is "utf-16le" | |
| 11 PASS new TextDecoder('utf-16le').encoding is "utf-16le" | |
| 12 PASS new TextDecoder('UTF-16LE').encoding is "utf-16le" | |
| 13 PASS new TextDecoder('utf-16be').encoding is "utf-16be" | |
| 14 PASS new TextDecoder('UTF-16BE').encoding is "utf-16be" | |
| 15 PASS new TextDecoder('ascii').encoding is "windows-1252" | |
| 16 PASS new TextDecoder('ASCII').encoding is "windows-1252" | |
| 17 PASS new TextDecoder('iso-8859-1').encoding is "windows-1252" | |
| 18 PASS new TextDecoder('ISO-8859-1').encoding is "windows-1252" | |
| 19 PASS successfullyParsed is true | |
| 20 | |
| 21 TEST COMPLETE | |
| 22 | |
| OLD | NEW |