mirror of
https://github.com/servo/servo.git
synced 2025-08-23 06:15:35 +01:00
Make Request throw less often (fixes #13457)
This commit is contained in:
parent
ec5ed8edfd
commit
6f97ce826b
6 changed files with 15 additions and 29 deletions
|
@ -26,6 +26,11 @@
|
|||
"Expect TypeError exception");
|
||||
},"Input URL has credentials");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError() , function() { new Request("", {"mode" : "navigate"}); },
|
||||
"Expect TypeError exception");
|
||||
},"RequestInit's mode is navigate");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError() , function() { new Request("", {"referrer" : "http://:not a valid URL"}); },
|
||||
"Expect TypeError exception");
|
||||
|
|
|
@ -49,8 +49,8 @@
|
|||
"strict-origin-when-cross-origin"
|
||||
]
|
||||
};
|
||||
var modes = {"givenValues" : ["same-origin", "no-cors", "cors", "navigate"],
|
||||
"expectedValues" : ["same-origin", "no-cors", "cors", "same-origin"]
|
||||
var modes = {"givenValues" : ["same-origin", "no-cors", "cors"],
|
||||
"expectedValues" : ["same-origin", "no-cors", "cors"]
|
||||
};
|
||||
var credentials = {"givenValues" : ["omit", "same-origin", "include"],
|
||||
"expectedValues" : ["omit", "same-origin", "include"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue