mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -56,9 +56,9 @@ for(let i = 0; i < 0x21; i++) {
|
|||
promise_test((t) => {
|
||||
if(fail) {
|
||||
return Promise.all([
|
||||
promise_rejects(t, new TypeError(), fetch("about:blank", { headers: {"val1": val1} })),
|
||||
promise_rejects(t, new TypeError(), fetch("about:blank", { headers: {"val2": val2} })),
|
||||
promise_rejects(t, new TypeError(), fetch("about:blank", { headers: {"val3": val3} }))
|
||||
promise_rejects(t, new TypeError(), fetch(url, { headers: {"val1": val1} })),
|
||||
promise_rejects(t, new TypeError(), fetch(url, { headers: {"val2": val2} })),
|
||||
promise_rejects(t, new TypeError(), fetch(url, { headers: {"val3": val3} }))
|
||||
])
|
||||
} else {
|
||||
return fetch(url, { headers: {"val1": val1, "val2": val2, "val3": val3} }).then((res) => {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
assert_throws("SyntaxError", () => xhr.setRequestHeader("value-test", val))
|
||||
}, "XMLHttpRequest with value " + encodeURI(val) + " needs to throw")
|
||||
|
||||
promise_test(t => promise_rejects(t, new TypeError(), fetch("about:blank", { headers: {"value-test": val} })), "fetch() with value " + encodeURI(val) + " needs to throw")
|
||||
promise_test(t => promise_rejects(t, new TypeError(), fetch("/", { headers: {"value-test": val} })), "fetch() with value " + encodeURI(val) + " needs to throw")
|
||||
})
|
||||
|
||||
// Valid values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue