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