| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Encoding API: Latin-1 decoders</title> | 2 <title>Encoding API: Latin-1 decoders</title> |
| 3 <script src="../../../resources/testharness.js"></script> | 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> | 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <script src="resources/shared.js"></script> | 5 <script src="resources/encodings.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 // Blink uses separate decoder object intances for these encoding aliases, | 8 // Blink uses separate decoder object intances for these encoding aliases, |
| 9 // so test that they are behaving identically. | 9 // so test that they are behaving identically. |
| 10 | 10 |
| 11 test(function() { | 11 test(function() { |
| 12 | 12 |
| 13 var labels; | 13 var labels; |
| 14 encodings_table.forEach(function(section) { | 14 encodings_table.forEach(function(section) { |
| 15 section.encodings.forEach(function(encoding) { | 15 section.encodings.forEach(function(encoding) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 var windows1252 = new TextDecoder('windows-1252'); | 27 var windows1252 = new TextDecoder('windows-1252'); |
| 28 | 28 |
| 29 labels.forEach(function(label) { | 29 labels.forEach(function(label) { |
| 30 var decoder = new TextDecoder(label); | 30 var decoder = new TextDecoder(label); |
| 31 assert_equals(decoder.decode(array), windows1252.decode(array)); | 31 assert_equals(decoder.decode(array), windows1252.decode(array)); |
| 32 }); | 32 }); |
| 33 | 33 |
| 34 }, 'Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, etc) decode identicall
y.'); | 34 }, 'Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, etc) decode identicall
y.'); |
| 35 | 35 |
| 36 </script> | 36 </script> |
| OLD | NEW |