mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d
This commit is contained in:
parent
c45192614c
commit
775b784f79
2144 changed files with 58115 additions and 29658 deletions
|
@ -0,0 +1,16 @@
|
|||
// META: title=Encoding API: Legacy encodings
|
||||
// META: script=resources/encodings.js
|
||||
|
||||
encodings_table.forEach(function(section) {
|
||||
section.encodings.forEach(function(encoding) {
|
||||
if (encoding.name !== 'replacement') {
|
||||
test(function() {
|
||||
assert_equals(new TextDecoder(encoding.name).encoding, encoding.name.toLowerCase()); // ASCII names only, so safe
|
||||
}, 'Encoding argument supported for decode: ' + encoding.name);
|
||||
}
|
||||
|
||||
test(function() {
|
||||
assert_equals(new TextEncoder(encoding.name).encoding, 'utf-8');
|
||||
}, 'Encoding argument not considered for encode: ' + encoding.name);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue