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 362704 4fe11fc40572
parent 362703 1ecdf657881e
child 362705 24c5cff1eadb
push id91161
push userbkelly@mozilla.com
push dateWed, 07 Jun 2017 15:15:03 +0000
treeherdermozilla-inbound@4fe11fc40572 [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);
   }