Bug 1393439 - P3: Remove the wpt test for assuming to throw no-cors request with integrity attribute. r?bkelly
MozReview-Commit-ID: 1DblOV82nEd
--- a/testing/web-platform/tests/fetch/api/request/request-error.html
+++ b/testing/web-platform/tests/fetch/api/request/request-error.html
@@ -48,22 +48,16 @@
test(function() {
assert_throws(new TypeError() , function() { new Request("", {"mode" : "no-cors", "method" : "PUT"}); },
"Expect TypeError exception");
},"RequestInit's mode is no-cors and method is not simple");
test(function() {
assert_throws(new TypeError() ,
- function() { new Request("", {"mode" : "no-cors", "integrity" : "not an empty string"}); },
- "Expect TypeError exception");
- },"RequestInit's mode is no-cors and integrity is not empty");
-
- test(function() {
- assert_throws(new TypeError() ,
function() { new Request("", {"mode" : "cors", "cache" : "only-if-cached"}); },
"Expect TypeError exception");
},"RequestInit's cache mode is only-if-cached and mode is not same-origin");
test(function() {
var initialHeaders = new Headers([["Content-Type", "potato"]]);
var initialRequest = new Request("", {"headers" : initialHeaders});
var request = new Request(initialRequest);