Bug 1263469 P4 Update test_eventsource_intercept.html to validate FetchEvent.request.cache. r=ehsan

This commit is contained in:
Ben Kelly 2016-04-15 11:15:58 -07:00
Родитель eeef1152c0
Коммит 8c007635a4
3 изменённых файлов: 3 добавлений и 0 удалений

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

@ -12,6 +12,7 @@ self.addEventListener('fetch', function (event) {
}
ok(request.mode === 'cors', 'EventSource should make a CORS request');
ok(request.cache === 'no-store', 'EventSource should make a no-store request');
var fetchRequest = new Request(prefix + 'eventsource.resource', { mode: 'cors'});
event.respondWith(fetch(fetchRequest).then((fetchResponse) => {
return fetchResponse;

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

@ -11,6 +11,7 @@ self.addEventListener('fetch', function (event) {
}
ok(request.mode === 'cors', 'EventSource should make a CORS request');
ok(request.cache === 'no-store', 'EventSource should make a no-store request');
var fetchRequest = new Request(prefix + 'eventsource.resource', { mode: 'cors'});
event.respondWith(fetch(fetchRequest).then((fetchResponse) => {
return fetchResponse;

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

@ -12,6 +12,7 @@ self.addEventListener('fetch', function (event) {
}
ok(request.mode === 'cors', 'EventSource should make a CORS request');
ok(request.cache === 'no-store', 'EventSource should make a no-store request');
var fetchRequest = new Request(prefix + 'eventsource.resource', { mode: 'no-cors'});
event.respondWith(fetch(fetchRequest).then((fetchResponse) => {
return fetchResponse;