зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1369862 P4 Update test_fetch_event.html expectations for synthesized CORS response returned for outer no-cors request. r=asuth
This commit is contained in:
Родитель
d040c2b969
Коммит
8b4b0d6f7a
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче