OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Service Worker: postMessage across processes</title> | 2 <title>Service Worker: postMessage across processes</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.js"></script> | 5 <script src="resources/test-helpers.js"></script> |
6 <script> | 6 <script> |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.setCanOpenWindows(); | 8 testRunner.setCanOpenWindows(); |
9 } | 9 } |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 'Acking value: 2', | 38 'Acking value: 2', |
39 ]; | 39 ]; |
40 | 40 |
41 function onMessage(e) { | 41 function onMessage(e) { |
42 var result = e.data; | 42 var result = e.data; |
43 assert_array_equals(result, expected, | 43 assert_array_equals(result, expected, |
44 'Worker should post back expected values.'); | 44 'Worker should post back expected values.'); |
45 t.done(); | 45 t.done(); |
46 } | 46 } |
47 }, 'postMessage MessagePorts from client to SW in a different process'); | 47 }, 'postMessage MessagePorts from client to SW in a different process'); |
| 48 |
48 </script> | 49 </script> |
OLD | NEW |