mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Update web-platform-tests to revision b'1393983442315fc6a96bacda5202036ca10327e3'
This commit is contained in:
parent
37f26f5250
commit
e8bd8b22fa
300 changed files with 3487 additions and 1857 deletions
|
@ -13,8 +13,11 @@ meta.setAttribute('http-equiv', 'Content-Security-Policy');
|
|||
meta.setAttribute('content', "connect-src 'none'");
|
||||
document.head.appendChild(meta);
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
backgroundFetchTest(async (t, bgFetch) => {
|
||||
const fetch = await bgFetch.fetch(uniqueId(), '/');
|
||||
|
||||
const record = await fetch.match('/');
|
||||
return promise_rejects_js(
|
||||
t, TypeError,
|
||||
bgFetch.fetch(uniqueId(), 'https://example.com'));
|
||||
record.responseReady);
|
||||
}, 'fetch blocked by CSP should reject');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue