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:
Ben Kelly 2017-06-07 08:14:58 -07:00
Родитель d040c2b969
Коммит 8b4b0d6f7a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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();
});