mirror of
https://github.com/servo/servo.git
synced 2025-08-26 15:48:22 +01:00
Update web-platform-tests to revision 346d5b51a122f7bb1c7747064499ef281a0200f7
This commit is contained in:
parent
581c8ba1c8
commit
79b1e6c40c
1728 changed files with 20243 additions and 5349 deletions
|
@ -45,7 +45,7 @@ var badStrings = [
|
|||
|
||||
badStrings.forEach(function(t) {
|
||||
test(function() {
|
||||
var encoded = new TextEncoder('utf-8').encode(t.input);
|
||||
var encoded = new TextEncoder().encode(t.input);
|
||||
assert_array_equals([].slice.call(encoded), t.expected);
|
||||
assert_equals(new TextDecoder('utf-8').decode(encoded), t.decoded);
|
||||
}, 'Invalid surrogates encoded into UTF-8: ' + t.name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue