mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 2df7f9ff620cbdaa2928464892fb1dfb880fd6c6
This commit is contained in:
parent
97e3c5f3a9
commit
7ba3376dde
74 changed files with 1985 additions and 504 deletions
|
@ -30,34 +30,6 @@ backgroundFetchTest((t, bgFetch) => {
|
|||
return bgFetch.fetch(uniqueId(), 'http://localhost');
|
||||
}, 'localhost http: fetch should register ok');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueId(), 'http://example.com'));
|
||||
}, 'non-loopback http: fetch should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueId(), 'http://192.0.2.0'));
|
||||
}, 'non-loopback IPv4 http: fetch should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueId(), 'http://[2001:db8::1]'));
|
||||
}, 'non-loopback IPv6 http: fetch should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueId(), ['https://example.com',
|
||||
'http://example.com']));
|
||||
}, 'https: and non-loopback http: fetch should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueId(), ['http://example.com',
|
||||
'https://example.com']));
|
||||
}, 'non-loopback http: and https: fetch should reject');
|
||||
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueId(), 'wss:127.0.0.1'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue