OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <title>Service Worker: WindowClient.navigate() tests</title> | |
3 <script src="../resources/testharness.js"></script> | |
4 <script src="../resources/testharnessreport.js"></script> | |
5 <script src="../resources/get-host-info.js"></script> | |
6 <script src="resources/test-helpers.js"></script> | |
7 <body> | |
8 <script> | |
9 | |
10 promise_test(function(test) { | |
11 var scope = 'resources/blank.html'; | |
12 var script_url = 'resources/test.js'; | |
13 var service_worker; | |
14 return service_worker_unregister_and_register( | |
15 test, script_url, scope) | |
16 .then(function(registration) { | |
17 service_worker = registration.installing; | |
18 return wait_for_state(test, service_worker, 'installed'); | |
19 }) | |
20 .then(function(state) { | |
21 console.log(state); | |
22 return with_iframe(scope); | |
nhiroki
2016/02/08 04:54:02
This promise is never settled (or settled when the
| |
23 }) | |
24 .then(function(frame) { | |
25 console.log(frame); | |
26 service_worker.postMessage('send_message'); | |
27 }); | |
28 }); | |
29 | |
30 </script> | |
31 </body> | |
OLD | NEW |