mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d
This commit is contained in:
parent
c45192614c
commit
775b784f79
2144 changed files with 58115 additions and 29658 deletions
|
@ -15,65 +15,65 @@
|
|||
// intended to check that blocking is enabled.
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return bgFetch.fetch(uniqueTag(), 'https://example.com');
|
||||
return bgFetch.fetch(uniqueId(), 'https://example.com');
|
||||
}, 'https: fetch should register ok');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return bgFetch.fetch(uniqueTag(), 'http://127.0.0.1');
|
||||
return bgFetch.fetch(uniqueId(), 'http://127.0.0.1');
|
||||
}, 'loopback IPv4 http: fetch should register ok');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return bgFetch.fetch(uniqueTag(), 'http://[::1]');
|
||||
return bgFetch.fetch(uniqueId(), 'http://[::1]');
|
||||
}, 'loopback IPv6 http: fetch should register ok');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return bgFetch.fetch(uniqueTag(), 'http://localhost');
|
||||
return bgFetch.fetch(uniqueId(), 'http://localhost');
|
||||
}, 'localhost http: fetch should register ok');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueTag(), 'http://example.com'));
|
||||
bgFetch.fetch(uniqueId(), 'http://example.com'));
|
||||
}, 'non-loopback http: fetch should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueTag(), 'http://192.0.2.0'));
|
||||
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(uniqueTag(), 'http://[2001:db8::1]'));
|
||||
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(uniqueTag(), ['https://example.com',
|
||||
'http://example.com']));
|
||||
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(uniqueTag(), ['http://example.com',
|
||||
'https://example.com']));
|
||||
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(uniqueTag(), 'wss:127.0.0.1'));
|
||||
bgFetch.fetch(uniqueId(), 'wss:127.0.0.1'));
|
||||
}, 'wss: fetch should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueTag(), 'file:///'));
|
||||
bgFetch.fetch(uniqueId(), 'file:///'));
|
||||
}, 'file: fetch should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueTag(), 'data:text/plain,foo'));
|
||||
bgFetch.fetch(uniqueId(), 'data:text/plain,foo'));
|
||||
}, 'data: fetch should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(t, new TypeError(),
|
||||
bgFetch.fetch(uniqueTag(), 'foobar:bazqux'));
|
||||
bgFetch.fetch(uniqueId(), 'foobar:bazqux'));
|
||||
}, 'unknown scheme fetch should reject');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue