| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Service Worker: Clients.get</title> | 2 <title>Service Worker: Clients.get</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/testharnessreport.js"></script> |
| 5 <script src="resources/get-host-info.sub.js"></script> | 5 <script src="/common/get-host-info.sub.js"></script> |
| 6 <script src="resources/test-helpers.sub.js"></script> | 6 <script src="resources/test-helpers.sub.js"></script> |
| 7 <script> | 7 <script> |
| 8 var host_info = get_host_info(); | 8 var host_info = get_host_info(); |
| 9 | 9 |
| 10 var scope = 'resources/clients-get-frame.html'; | 10 var scope = 'resources/clients-get-frame.html'; |
| 11 var t = async_test('Test Clients.get()'); | 11 var t = async_test('Test Clients.get()'); |
| 12 var clientIds = []; | 12 var clientIds = []; |
| 13 var frame; | 13 var frame; |
| 14 t.step(function() { | 14 t.step(function() { |
| 15 service_worker_unregister_and_register( | 15 service_worker_unregister_and_register( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 ]; | 61 ]; |
| 62 | 62 |
| 63 function on_message(e) { | 63 function on_message(e) { |
| 64 assert_equals(e.data.length, 3); | 64 assert_equals(e.data.length, 3); |
| 65 assert_array_equals(e.data[0], expected[0]); | 65 assert_array_equals(e.data[0], expected[0]); |
| 66 assert_array_equals(e.data[1], expected[1]); | 66 assert_array_equals(e.data[1], expected[1]); |
| 67 assert_equals(e.data[2], expected[2]); | 67 assert_equals(e.data[2], expected[2]); |
| 68 service_worker_unregister_and_done(t, scope); | 68 service_worker_unregister_and_done(t, scope); |
| 69 } | 69 } |
| 70 </script> | 70 </script> |
| OLD | NEW |