Bug 1393439 - P3: Remove the wpt test for assuming to throw no-cors request with integrity attribute. r=bkelly
authorTom Tung <shes050117@gmail.com>
Tue, 29 Aug 2017 16:01:58 +0800
changeset 657392 d36e0b2393c68c2c1711bbf1e30025b078dd7e67
parent 657391 d579a12e0521c2dead8a47da7f716c487f1547f6
child 657393 17d94b20daeb83851b4b1ce2ab12c32756a8fcc2
push id77508
push userbmo:emilio@crisal.io
push dateFri, 01 Sep 2017 11:17:48 +0000
reviewersbkelly
bugs1393439
milestone57.0a1
Bug 1393439 - P3: Remove the wpt test for assuming to throw no-cors request with integrity attribute. r=bkelly MozReview-Commit-ID: 1DblOV82nEd
testing/web-platform/tests/fetch/api/request/request-error.html
--- 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);