Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1369862 P4 Update test_fetch_event.html expectations for synthesi…
Browse files Browse the repository at this point in the history
…zed CORS response returned for outer no-cors request. r=asuth
  • Loading branch information
wanderview committed Jun 7, 2017
1 parent d6a29b1 commit ea4dd2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dom/workers/test/serviceworkers/fetch/fetch_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ fetch('http://example.com/opaque-no-cors', { mode: "no-cors" })
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();
});

Expand Down

0 comments on commit ea4dd2f

Please sign in to comment.