mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision b'99458bfd6e43f5842a4a510cc5adfd8185e5c64c'
This commit is contained in:
parent
eac515e4ab
commit
ec97b29ff1
334 changed files with 5735 additions and 3175 deletions
|
@ -18,6 +18,9 @@ const did_not_revoke_response = "URL.revokeObjectURL did not revoke";
|
|||
|
||||
const can_blob_url_be_revoked_js = (blob_url, response_queue_name) => `
|
||||
async function test() {
|
||||
if (!('revokeObjectURL' in URL)) {
|
||||
return send("${response_queue_name}", "URL.revokeObjectURL is not exposed");
|
||||
}
|
||||
try {
|
||||
var blob = await fetch("${blob_url}").then(response => response.blob());
|
||||
await blob.text();
|
||||
|
@ -260,8 +263,8 @@ promise_test(t => {
|
|||
await send(worker_1_uuid,
|
||||
can_blob_url_be_revoked_js(blob_url, response_queue_uuid));
|
||||
const response = await receive(response_queue_uuid);
|
||||
if (response !== "TypeError: URL.revokeObjectURL is not a function") {
|
||||
reject(`Calling URL.revokeObjectURL didn't throw as expected: ${response}`);
|
||||
if (response !== "URL.revokeObjectURL is not exposed") {
|
||||
reject(`URL.revokeObjectURL is exposed in a Service Worker context: ${response}`);
|
||||
}
|
||||
resolve();
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue