mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d
This commit is contained in:
parent
65dd6d4340
commit
ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions
|
@ -41,6 +41,19 @@ function testTextDecoding(body, expectedText, urlParameter, title)
|
|||
});
|
||||
});
|
||||
}, title + " with fetched data (UTF-16 charset)");
|
||||
|
||||
promise_test(function(test) {
|
||||
return new Response(body).arrayBuffer().then(function(buffer) {
|
||||
assert_array_equals(new Uint8Array(buffer), encode_utf8(body), "Response.arrayBuffer() should contain data encoded as UTF-8");
|
||||
});
|
||||
}, title + " (Response object)");
|
||||
|
||||
promise_test(function(test) {
|
||||
return new Request("", {method: "POST", body: body}).arrayBuffer().then(function(buffer) {
|
||||
assert_array_equals(new Uint8Array(buffer), encode_utf8(body), "Request.arrayBuffer() should contain data encoded as UTF-8");
|
||||
});
|
||||
}, title + " (Request object)");
|
||||
|
||||
}
|
||||
|
||||
var utf8WithBOM = "\xef\xbb\xbf\xe4\xb8\x89\xe6\x9d\x91\xe3\x81\x8b\xe3\x81\xaa\xe5\xad\x90";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue