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:14:58 -0700
changeset 413181 4fe11fc40572bf197f8b0d42db9a94f3d4b74c08
parent 413180 1ecdf657881e9645a7da761c254995e23fc2d523
child 413182 24c5cff1eadb25aba955c18a509651921dc4831e
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [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);
   }