mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -10,23 +10,23 @@
|
|||
// https://url.spec.whatwg.org/#include-credentials
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return bgFetch.fetch(uniqueTag(), 'https://example.com');
|
||||
return bgFetch.fetch(uniqueId(), 'https://example.com');
|
||||
}, 'fetch without credentials in URL should register ok');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(
|
||||
t, new TypeError(),
|
||||
bgFetch.fetch(uniqueTag(), 'https://username:password@example.com'));
|
||||
bgFetch.fetch(uniqueId(), 'https://username:password@example.com'));
|
||||
}, 'fetch with username and password in URL should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(
|
||||
t, new TypeError(),
|
||||
bgFetch.fetch(uniqueTag(), 'https://username:@example.com'));
|
||||
bgFetch.fetch(uniqueId(), 'https://username:@example.com'));
|
||||
}, 'fetch with username and empty password in URL should reject');
|
||||
|
||||
backgroundFetchTest((t, bgFetch) => {
|
||||
return promise_rejects(
|
||||
t, new TypeError(),
|
||||
bgFetch.fetch(uniqueTag(), 'https://:password@example.com'));
|
||||
bgFetch.fetch(uniqueId(), 'https://:password@example.com'));
|
||||
}, 'fetch with empty username and password in URL should reject');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue