mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision acdb8bf3e4714528b6b5f9ff038dc80ee4fb7dcf
This commit is contained in:
parent
56a7981c9c
commit
93b883e1db
27 changed files with 1021 additions and 165 deletions
|
@ -6,8 +6,8 @@
|
|||
<script>
|
||||
|
||||
test(function() {
|
||||
assert_throws({name: 'RangeError'}, function() { new TextEncoder('replacement'); });
|
||||
assert_throws({name: 'RangeError'}, function() { new TextDecoder('replacement'); });
|
||||
assert_throws(new RangeError(), function() { new TextEncoder('replacement'); });
|
||||
assert_throws(new RangeError(), function() { new TextDecoder('replacement'); });
|
||||
}, 'The "replacement" label should not be a known encoding.');
|
||||
|
||||
encodings_table.forEach(function(section) {
|
||||
|
@ -16,8 +16,8 @@ encodings_table.forEach(function(section) {
|
|||
}).forEach(function(encoding) {
|
||||
encoding.labels.forEach(function(label) {
|
||||
test(function() {
|
||||
assert_throws({name: 'RangeError'}, function() { new TextEncoder(label); });
|
||||
assert_throws({name: 'RangeError'}, function() { new TextDecoder(label); });
|
||||
assert_throws(new RangeError(), function() { new TextEncoder(label); });
|
||||
assert_throws(new RangeError(), function() { new TextDecoder(label); });
|
||||
}, 'Label for "replacement" should be rejected by API: ' + label);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue