OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <script src="resources/shared.js"></script> | 3 <script src="resources/shared.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 description("Test the Encoding API's use of encoding names"); | 6 description("Test the Encoding API's use of encoding names"); |
7 | 7 |
8 encodings_table.forEach(function(section) { | 8 encodings_table.forEach(function(section) { |
9 var list = section.encodings; | 9 var list = section.encodings; |
10 list.forEach(function(encoding) { | 10 list.filter(function(encoding) { |
| 11 return encoding.name !== 'replacement'; |
| 12 }).forEach(function(encoding) { |
11 debug(""); | 13 debug(""); |
12 evalAndLog("name = " + JSON.stringify(encoding.name)); | 14 evalAndLog("name = " + JSON.stringify(encoding.name)); |
13 encoding.labels.forEach(function(label) { | 15 encoding.labels.forEach(function(label) { |
14 shouldBeEqualToString("new TextDecoder(" + JSON.stringify(label) + "
).encoding", encoding.name); | 16 shouldBeEqualToString("new TextDecoder(" + JSON.stringify(label) + "
).encoding", encoding.name); |
15 }); | 17 }); |
16 }); | 18 }); |
17 }); | 19 }); |
18 | 20 |
19 </script> | 21 </script> |
OLD | NEW |