OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Service Worker: claim client not using registration</title> | 2 <title>Service Worker: claim client not using registration</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/testharness-helpers.js"></script> |
5 <script src="resources/test-helpers.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script src="resources/test-helpers.sub.js"></script> |
6 <body> | 7 <body> |
7 <script> | 8 <script> |
8 | 9 |
9 promise_test(function(t) { | 10 promise_test(function(t) { |
10 var init_scope = 'resources/blank.html?not-using-init'; | 11 var init_scope = 'resources/blank.html?not-using-init'; |
11 var claim_scope = 'resources/blank.html?not-using'; | 12 var claim_scope = 'resources/blank.html?not-using'; |
12 var init_worker_url = 'resources/empty.js'; | 13 var init_worker_url = 'resources/empty.js'; |
13 var claim_worker_url = 'resources/claim-worker.js'; | 14 var claim_worker_url = 'resources/claim-worker.js'; |
14 var claim_worker, claim_registration, frame1, frame2; | 15 var claim_worker, claim_registration, frame1, frame2; |
15 return service_worker_unregister_and_register( | 16 return service_worker_unregister_and_register( |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 frame.remove(); | 114 frame.remove(); |
114 return service_worker_unregister(t, claim_scope); | 115 return service_worker_unregister(t, claim_scope); |
115 }) | 116 }) |
116 .then(function() { | 117 .then(function() { |
117 return service_worker_unregister_and_done(t, scope); | 118 return service_worker_unregister_and_done(t, scope); |
118 }); | 119 }); |
119 }, 'Test claim client when there\'s a longer-matched registration not ' + | 120 }, 'Test claim client when there\'s a longer-matched registration not ' + |
120 'already used by the page'); | 121 'already used by the page'); |
121 | 122 |
122 </script> | 123 </script> |
OLD | NEW |