Update web-platform-tests to revision b'3b791e5b10812a4ca4473d93679fc70d1a7f5f88'

This commit is contained in:
WPT Sync Bot 2023-03-02 01:47:05 +00:00
parent 61fe4cf606
commit 17f4d58879
157 changed files with 1609 additions and 430 deletions

View file

@ -28,8 +28,12 @@ backgroundFetchTest((t, bgFetch) => {
return bgFetch.fetch(uniqueId(), 'https://example.com:8080');
}, 'fetch to non-default non-bad port (8080) should register ok');
backgroundFetchTest((t, bgFetch) => {
backgroundFetchTest(async (t, bgFetch) => {
const promise = bgFetch.fetch(uniqueId(), 'https://example.com:587').then(fetch => {
return fetch.match('https://example.com:587');
}).then(record => record.responseReady);
return promise_rejects_js(
t, TypeError,
bgFetch.fetch(uniqueId(), 'https://example.com:587'));
promise);
}, 'fetch to bad port (SMTP) should reject');