| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Service Worker: claim client using registration</title> | 2 <title>Service Worker: claim client 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 <script> | 6 <script> |
| 8 | 7 |
| 9 promise_test(function(t) { | 8 promise_test(function(t) { |
| 10 var scope = 'resources/'; | 9 var scope = 'resources/'; |
| 11 var frame_url = 'resources/blank.html?using-different-registration'; | 10 var frame_url = 'resources/blank.html?using-different-registration'; |
| 12 var url1 = 'resources/empty.js'; | 11 var url1 = 'resources/empty.js'; |
| 13 var url2 = 'resources/claim-worker.js'; | 12 var url2 = 'resources/claim-worker.js'; |
| 14 var worker, sw_registration, frame; | 13 var worker, sw_registration, frame; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 return saw_message; | 90 return saw_message; |
| 92 }) | 91 }) |
| 93 .then(function() { | 92 .then(function() { |
| 94 frame.remove(); | 93 frame.remove(); |
| 95 return service_worker_unregister_and_done(t, scope); | 94 return service_worker_unregister_and_done(t, scope); |
| 96 }); | 95 }); |
| 97 }, 'Test for the waiting worker claims a client which is using the the ' + | 96 }, 'Test for the waiting worker claims a client which is using the the ' + |
| 98 'same registration'); | 97 'same registration'); |
| 99 | 98 |
| 100 </script> | 99 </script> |
| OLD | NEW |