OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Service Worker: Clients.get with window and worker clients</title> | 2 <title>Service Worker: Clients.get with window and worker clients</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/test-helpers.sub.js"></script> | 5 <script src="resources/test-helpers.sub.js"></script> |
6 <script> | 6 <script> |
7 var scope = 'resources/clients-get-client-types'; | 7 var scope = 'resources/clients-get-client-types'; |
8 var frame_url = scope + '-frame.html'; | 8 var frame_url = scope + '-frame.html'; |
9 var shared_worker_url = scope + '-shared-worker.js'; | 9 var shared_worker_url = scope + '-shared-worker.js'; |
10 var client_ids = []; | 10 var client_ids = []; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 return new Promise(function(resolve) { | 55 return new Promise(function(resolve) { |
56 function get_client_id(e) { | 56 function get_client_id(e) { |
57 window.removeEventListener('message', get_client_id); | 57 window.removeEventListener('message', get_client_id); |
58 resolve(e.data.clientId); | 58 resolve(e.data.clientId); |
59 } | 59 } |
60 window.addEventListener('message', get_client_id, false); | 60 window.addEventListener('message', get_client_id, false); |
61 }); | 61 }); |
62 } | 62 } |
63 | 63 |
64 var expected = [ | 64 var expected = [ |
65 /* visibilityState, focused, url, frameType */ | 65 /* visibilityState, focused, url, type, frameType */ |
falken
2017/05/15 06:39:28
nit: while here can you change this to a // style
leonhsl(Using Gerrit)
2017/05/16 02:54:28
Done.
| |
66 ['visible', true, normalizeURL(scope) + '-frame.html', 'nested'], | 66 ['visible', true, normalizeURL(scope) + '-frame.html', 'window', 'nested'], |
67 [undefined, undefined, normalizeURL(scope) + '-shared-worker.js', 'none'] | 67 [undefined, undefined, normalizeURL(scope) + '-shared-worker.js', 'sharedwor ker', 'none'] |
68 ]; | 68 ]; |
69 </script> | 69 </script> |
OLD | NEW |