зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1263469 P4 Update test_eventsource_intercept.html to validate FetchEvent.request.cache. r=ehsan
This commit is contained in:
Родитель
eeef1152c0
Коммит
8c007635a4
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче