| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Encoding API: invalid label</title> | 2 <title>Encoding API: invalid label</title> |
| 3 <meta name="timeout" content="long"> | 3 <meta name="timeout" content="long"> |
| 4 <script src="../../../resources/testharness.js"></script> | 4 <script src="../../../resources/testharness.js"></script> |
| 5 <script src="../../../resources/testharnessreport.js"></script> | 5 <script src="../../../resources/testharnessreport.js"></script> |
| 6 <script src="resources/encodings.js"></script> | 6 <script src="resources/encodings.js"></script> |
| 7 <script> | 7 <script> |
| 8 var tests = ["invalid-invalidLabel"]; | 8 var tests = ["invalid-invalidLabel"]; |
| 9 setup(function() { | 9 setup(function() { |
| 10 encodings_table.forEach(function(section) { | 10 encodings_table.forEach(function(section) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 }); | 21 }); |
| 22 }); | 22 }); |
| 23 }); | 23 }); |
| 24 | 24 |
| 25 tests.forEach(function(input) { | 25 tests.forEach(function(input) { |
| 26 test(function() { | 26 test(function() { |
| 27 assert_throws(new RangeError(), function() { new TextDecoder(input); }); | 27 assert_throws(new RangeError(), function() { new TextDecoder(input); }); |
| 28 }, 'Invalid label ' + format_value(input) + ' should be rejected by TextDecode
r.'); | 28 }, 'Invalid label ' + format_value(input) + ' should be rejected by TextDecode
r.'); |
| 29 }); | 29 }); |
| 30 </script> | 30 </script> |
| OLD | NEW |