| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Service Worker: FetchEvent for resources</title> | 2 <title>Service Worker: FetchEvent for resources</title> |
| 3 <meta name="timeout" content="long"> | 3 <meta name="timeout" content="long"> |
| 4 <script src="/resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script src="resources/get-host-info.sub.js"></script> | 6 <script src="/common/get-host-info.sub.js"></script> |
| 7 <script src="resources/test-helpers.sub.js"></script> | 7 <script src="resources/test-helpers.sub.js"></script> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 function assert_resolves(promise, description) { | 10 function assert_resolves(promise, description) { |
| 11 return promise.catch(function(reason) { | 11 return promise.catch(function(reason) { |
| 12 throw new Error(description + ' - ' + reason.message); | 12 throw new Error(description + ' - ' + reason.message); |
| 13 }); | 13 }); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function assert_rejects(promise, description) { | 16 function assert_rejects(promise, description) { |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 'not be redirected with NO-CORS mode.'), | 363 'not be redirected with NO-CORS mode.'), |
| 364 ]); | 364 ]); |
| 365 }) | 365 }) |
| 366 .then(function() { | 366 .then(function() { |
| 367 frame.remove(); | 367 frame.remove(); |
| 368 service_worker_unregister_and_done(t, SCOPE); | 368 service_worker_unregister_and_done(t, SCOPE); |
| 369 }); | 369 }); |
| 370 }, 'Verify redirected of Response(Fetch API), Cache API and ServiceWorker ' + | 370 }, 'Verify redirected of Response(Fetch API), Cache API and ServiceWorker ' + |
| 371 'FetchEvent.'); | 371 'FetchEvent.'); |
| 372 </script> | 372 </script> |
| OLD | NEW |