| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>ServiceWorker: navigator.serviceWorker.waiting</title> | 2 <title>ServiceWorker: navigator.serviceWorker.waiting</title> |
| 3 <script src="../resources/testharness.js"></script> | 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <script src="resources/test-helpers.js"></script> | 5 <script src="resources/test-helpers.sub.js"></script> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 promise_test(function(t) { | 9 promise_test(function(t) { |
| 10 var scope = | 10 var scope = |
| 11 'resources/fetch-event-after-navigation-within-page-iframe.html' + | 11 'resources/fetch-event-after-navigation-within-page-iframe.html' + |
| 12 '?hashchange'; | 12 '?hashchange'; |
| 13 var worker = 'resources/simple-intercept-worker.js'; | 13 var worker = 'resources/simple-intercept-worker.js'; |
| 14 var frame; | 14 var frame; |
| 15 | 15 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 return frame.contentWindow.fetch_url('simple.txt'); | 56 return frame.contentWindow.fetch_url('simple.txt'); |
| 57 }) | 57 }) |
| 58 .then(function(response) { | 58 .then(function(response) { |
| 59 assert_equals(response, 'intercepted by service worker'); | 59 assert_equals(response, 'intercepted by service worker'); |
| 60 frame.remove(); | 60 frame.remove(); |
| 61 return service_worker_unregister_and_done(t, scope); | 61 return service_worker_unregister_and_done(t, scope); |
| 62 }) | 62 }) |
| 63 }, 'Service Worker should respond to fetch event after the pushState'); | 63 }, 'Service Worker should respond to fetch event after the pushState'); |
| 64 | 64 |
| 65 </script> | 65 </script> |
| OLD | NEW |