Bug 1369862 P4 Update test_fetch_event.html expectations for synthesized CORS response returned for outer no-cors request. r=asuth
authorBen Kelly <ben@wanderview.com>
Wed, 07 Jun 2017 08:34:51 -0700
changeset 410828 1a7b65a51a0bed517a1165bb10d09c6b1b9e3ac2
parent 410827 7a4d1d7425631593c6846ccd2611c4e54c33ea44
child 410829 51c81beac6aa43f61b67adc5bc0692476759246f
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1369862
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1369862 P4 Update test_fetch_event.html expectations for synthesized CORS response returned for outer no-cors request. r=asuth
dom/workers/test/serviceworkers/fetch/fetch_tests.js
--- a/dom/workers/test/serviceworkers/fetch/fetch_tests.js
+++ b/dom/workers/test/serviceworkers/fetch/fetch_tests.js
@@ -272,20 +272,20 @@ fetch('http://example.com/opaque-no-cors
 }, function(e) {
   my_ok(false, "intercepted opaque response for no-cors request should pass.");
   finish();
 });
 
 expectAsyncResult();
 fetch('http://example.com/cors-for-no-cors', { mode: "no-cors" })
 .then(function(res) {
-  my_ok(res.type == "opaque", "intercepted non-opaque response for no-cors request should resolve to opaque response.");
+  my_ok(res.type == "cors", "synthesize CORS response should result in outer CORS response");
   finish();
 }, function(e) {
-  my_ok(false, "intercepted non-opaque response for no-cors request should resolve to opaque response. It should not fail.");
+  my_ok(false, "cors-for-no-cors request should not reject");
   finish();
 });
 
 function arrayBufferFromString(str) {
   var arr = new Uint8Array(str.length);
   for (var i = 0; i < str.length; ++i) {
     arr[i] = str.charCodeAt(i);
   }