mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision ac16628eb7eb601957382053011363d2bcf8ce44
This commit is contained in:
parent
ea7e753cea
commit
7e7c8873e4
4408 changed files with 664787 additions and 857286 deletions
|
@ -20,7 +20,7 @@ async_test(t => {
|
|||
self.addEventListener('message', t.step_func(e => {
|
||||
if (e.source !== frame.contentWindow) return;
|
||||
assert_equals(e.data, 'revoked');
|
||||
promise_rejects(t, new TypeError, fetch(url)).then(t.step_func_done());
|
||||
promise_rejects_js(t, TypeError, fetch(url)).then(t.step_func_done());
|
||||
}));
|
||||
}, 'It is possible to revoke same-origin blob URLs from different frames.');
|
||||
|
||||
|
@ -31,7 +31,7 @@ async_test(t => {
|
|||
const worker = new Worker('resources/revoke-helper.js');
|
||||
worker.onmessage = t.step_func(e => {
|
||||
assert_equals(e.data, 'revoked');
|
||||
promise_rejects(t, new TypeError, fetch(url)).then(t.step_func_done());
|
||||
promise_rejects_js(t, TypeError, fetch(url)).then(t.step_func_done());
|
||||
});
|
||||
worker.postMessage({url: url});
|
||||
}, 'It is possible to revoke same-origin blob URLs from a different worker global.');
|
||||
|
|
|
@ -20,7 +20,7 @@ promise_test(t => {
|
|||
}).then(response => response.text()).then(text => {
|
||||
assert_equals(text, blob_contents);
|
||||
return new Promise(resolve => t.step_timeout(resolve, 100));
|
||||
}).then(() => promise_rejects(t, new TypeError, fetch(url)));
|
||||
}).then(() => promise_rejects_js(t, TypeError, fetch(url)));
|
||||
}, 'Terminating worker revokes its URLs');
|
||||
|
||||
promise_test(t => {
|
||||
|
@ -51,6 +51,6 @@ promise_test(t => {
|
|||
}).then(response => response.text()).then(text => {
|
||||
assert_equals(text, blob_contents);
|
||||
return new Promise(resolve => t.step_timeout(resolve, 100));
|
||||
}).then(() => promise_rejects(t, new TypeError, fetch(url)));
|
||||
}).then(() => promise_rejects_js(t, TypeError, fetch(url)));
|
||||
}, 'Removing an iframe revokes its URLs');
|
||||
</script>
|
|
@ -5,7 +5,7 @@ function fetch_should_succeed(test, request) {
|
|||
}
|
||||
|
||||
function fetch_should_fail(test, url, method = 'GET') {
|
||||
return promise_rejects(test, new TypeError, fetch(url, {method: method}));
|
||||
return promise_rejects_js(test, TypeError, fetch(url, {method: method}));
|
||||
}
|
||||
|
||||
fetch_tests('fetch', fetch_should_succeed, fetch_should_fail);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue