| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>ExtendableEvent: waitUntil</title> | 2 <title>ExtendableEvent: waitUntil</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 <script> | 6 <script> |
| 7 function runTest(test, scope, onRegister) { | 7 function runTest(test, scope, onRegister) { |
| 8 var script = 'resources/extendable-event-waituntil.js?' + scope; | 8 var script = 'resources/extendable-event-waituntil.js?' + scope; |
| 9 service_worker_unregister_and_register(test, script, scope) | 9 service_worker_unregister_and_register(test, script, scope) |
| 10 .then(function(registration) { | 10 .then(function(registration) { |
| 11 onRegister(registration.installing); | 11 onRegister(registration.installing); |
| 12 }); | 12 }); |
| 13 } | 13 } |
| 14 | 14 |
| 15 // Sends a SYN to the worker and asynchronously listens for an ACK; sets | 15 // Sends a SYN to the worker and asynchronously listens for an ACK; sets |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 wait_for_state(t, worker, 'activated') | 116 wait_for_state(t, worker, 'activated') |
| 117 .then(function() { | 117 .then(function() { |
| 118 service_worker_unregister_and_done(t, scope); | 118 service_worker_unregister_and_done(t, scope); |
| 119 }) | 119 }) |
| 120 .catch(unreached_rejection(t)); | 120 .catch(unreached_rejection(t)); |
| 121 }; | 121 }; |
| 122 runTest(t, scope, onRegister); | 122 runTest(t, scope, onRegister); |
| 123 }, 'Test activate event waitUntil rejected.'); | 123 }, 'Test activate event waitUntil rejected.'); |
| 124 | 124 |
| 125 </script> | 125 </script> |
| OLD | NEW |