| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Service Worker: ServiceWorkerClients.openWindow()</title> |
| 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <script src="resources/test-helpers.js"></script> |
| 6 <script> |
| 7 promise_test(function(test) { |
| 8 var url = 'resources/serviceworkerclients-openwindow-worker.js'; |
| 9 var scope = 'resources/'; |
| 10 return service_worker_unregister_and_register(test, url, scope) |
| 11 .then(function(registration) { |
| 12 add_completion_callback(function() { |
| 13 registration.unregister(); |
| 14 }); |
| 15 return wait_for_update(test, registration) |
| 16 .then(function(worker) { |
| 17 return fetch_tests_from_worker(worker); |
| 18 }); |
| 19 }); |
| 20 }, 'ServiceWorkerClients.openWindow()'); |
| 21 </script> |
| OLD | NEW |