OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title> | 2 <title> |
3 Tests posting messages over a navigator.connect initiated channel from a same | 3 Tests posting messages over a navigator.connect initiated channel from a same |
4 origin page. | 4 origin page. |
5 </title> | 5 </title> |
6 <script src="../../resources/testharness.js"></script> | 6 <script src="../../resources/testharness.js"></script> |
7 <script src="../../resources/testharnessreport.js"></script> | 7 <script src="../../resources/testharnessreport.js"></script> |
8 <script src="../../resources/testharness-helpers.js"></script> | 8 <script src="../../resources/testharness-helpers.js"></script> |
9 <script src="../serviceworker/resources/test-helpers.js"></script> | 9 <script src="../serviceworker/resources/test-helpers.js"></script> |
10 <script src="resources/test-helpers.js"></script> | 10 <script src="resources/test-helpers.js"></script> |
11 <script src="resources/postmessage-tests.js"></script> | 11 <script src="resources/postmessage-tests.js"></script> |
12 <script> | 12 <script> |
13 var sw_scope = 'resources/service-worker-scope' + window.location.pathname; | 13 var sw_scope = 'resources/service-worker-scope' + window.location.pathname; |
14 | 14 |
15 run_postmessage_tests(location.origin, function(t, service) { | 15 run_postmessage_tests(location.origin, function(t, service, options) { |
16 return first_to_resolve([wrap_in_port(navigator.services.connect(service)),
navigator.connect(service)]); | 16 return wrap_in_port(navigator.services.connect(service, options)); |
17 }); | 17 }); |
18 </script> | 18 </script> |
OLD | NEW |