OLD | NEW |
1 B<!DOCTYPE html> | 1 B<!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
3 <script src="resources/shared.js"></script> | 3 <script src="resources/shared.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 description("Verify that Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, e
tc) decode identically."); | 6 description("Verify that Latin-1 decoders (windows-1252, iso-8859-1, us-ascii, e
tc) decode identically."); |
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 |
(...skipping 17 matching lines...) Expand all Loading... |
28 labels.forEach(function(label) { | 28 labels.forEach(function(label) { |
29 decoder = null; | 29 decoder = null; |
30 evalAndLog("decoder = new TextDecoder(" + JSON.stringify(label) + ")"); | 30 evalAndLog("decoder = new TextDecoder(" + JSON.stringify(label) + ")"); |
31 // Above may throw if encoding unsupported. | 31 // Above may throw if encoding unsupported. |
32 if (decoder) { | 32 if (decoder) { |
33 shouldBe("decoder.decode(array)", "windows1252.decode(array)"); | 33 shouldBe("decoder.decode(array)", "windows1252.decode(array)"); |
34 } | 34 } |
35 }); | 35 }); |
36 | 36 |
37 </script> | 37 </script> |
38 <script src="../../js/resources/js-test-post.js"></script> | |
OLD | NEW |