| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>ServiceWorkerGlobalScope: update</title> | 2 <title>ServiceWorkerGlobalScope: update</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 | 7 |
| 8 promise_test(function(t) { | 8 promise_test(function(t) { |
| 9 var script = 'resources/update-worker.php'; | 9 var script = 'resources/update-worker.py'; |
| 10 var scope = 'resources/scope/update'; | 10 var scope = 'resources/scope/update'; |
| 11 var registration; | 11 var registration; |
| 12 var frame1; | 12 var frame1; |
| 13 | 13 |
| 14 return service_worker_unregister_and_register(t, script, scope) | 14 return service_worker_unregister_and_register(t, script, scope) |
| 15 .then(function(r) { | 15 .then(function(r) { |
| 16 registration = r; | 16 registration = r; |
| 17 return wait_for_state(t, registration.installing, 'activated'); | 17 return wait_for_state(t, registration.installing, 'activated'); |
| 18 }) | 18 }) |
| 19 .then(function() { return with_iframe(scope); }) | 19 .then(function() { return with_iframe(scope); }) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 frame2.contentDocument.body.textContent, | 36 frame2.contentDocument.body.textContent, |
| 37 expected_events_seen.toString(), | 37 expected_events_seen.toString(), |
| 38 'events seen by the worker'); | 38 'events seen by the worker'); |
| 39 frame1.remove(); | 39 frame1.remove(); |
| 40 frame2.remove(); | 40 frame2.remove(); |
| 41 return service_worker_unregister_and_done(t, scope); | 41 return service_worker_unregister_and_done(t, scope); |
| 42 }); | 42 }); |
| 43 }, 'Update a registration on ServiceWorkerGlobalScope'); | 43 }, 'Update a registration on ServiceWorkerGlobalScope'); |
| 44 | 44 |
| 45 </script> | 45 </script> |
| OLD | NEW |