Bug 1393439 - P3: Remove the wpt test for assuming to throw no-cors request with integrity attribute. r?bkelly draft
authorTom Tung <shes050117@gmail.com>
Tue, 29 Aug 2017 16:01:58 +0800
changeset 654863 6a71b48f72e53504ede46b9a3b6383ba3b9a7fef
parent 654862 62b2a5b6b1b599f848896cefe6ed0972c4804ebb
child 655671 fa5bc70fe795b75eb3ead214d916e335bd8eff59
child 655870 56bce4595111727076519ff8245791f87ab30cff
child 656420 175e805f2b0bca11ee71e52b84615b0aa5a90b61
child 657114 13310367ca283ab780ffe315c34969505454f816
push id76712
push userttung@mozilla.com
push dateTue, 29 Aug 2017 10:49:06 +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);