| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> | 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../resources/testharnessreport.js"></script> |
| 4 <script src="resources/test-helpers.js"></script> | 4 <script src="resources/test-helpers.js"></script> |
| 5 <script> | 5 <script> |
| 6 async_test(function(t) { | 6 async_test(function(t) { |
| 7 var scope = 'scope/installing-waiting-active-after-registration'; | 7 var scope = 'resources/scope/installing-waiting-active-after-registration'; |
| 8 var worker_url = 'resources/empty-worker.js'; | 8 var worker_url = 'resources/empty-worker.js'; |
| 9 var expected_url = normalizeURL(worker_url); | 9 var expected_url = normalizeURL(worker_url); |
| 10 | 10 |
| 11 service_worker_unregister_and_register(t, worker_url, scope) | 11 service_worker_unregister_and_register(t, worker_url, scope) |
| 12 .then(function(r) { | 12 .then(function(r) { |
| 13 registration = r; | 13 registration = r; |
| 14 assert_equals(registration.installing.scriptURL, expected_url, | 14 assert_equals(registration.installing.scriptURL, expected_url, |
| 15 'installing before updatefound'); | 15 'installing before updatefound'); |
| 16 assert_equals(registration.waiting, null, | 16 assert_equals(registration.waiting, null, |
| 17 'waiting before updatefound'); | 17 'waiting before updatefound'); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 'installing after redundant'); | 54 'installing after redundant'); |
| 55 assert_equals(registration.waiting, null, | 55 assert_equals(registration.waiting, null, |
| 56 'waiting after redundant'); | 56 'waiting after redundant'); |
| 57 assert_equals(registration.active.scriptURL, expected_url, | 57 assert_equals(registration.active.scriptURL, expected_url, |
| 58 'active after redundant'); | 58 'active after redundant'); |
| 59 t.done(); | 59 t.done(); |
| 60 }) | 60 }) |
| 61 .catch(unreached_rejection(t)); | 61 .catch(unreached_rejection(t)); |
| 62 }, 'installing/waiting/active after registration'); | 62 }, 'installing/waiting/active after registration'); |
| 63 </script> | 63 </script> |
| OLD | NEW |