| Index: LayoutTests/http/tests/navigatorconnect/postmessage-cross-origin.html
|
| diff --git a/LayoutTests/http/tests/navigatorconnect/connect.html b/LayoutTests/http/tests/navigatorconnect/postmessage-cross-origin.html
|
| similarity index 52%
|
| copy from LayoutTests/http/tests/navigatorconnect/connect.html
|
| copy to LayoutTests/http/tests/navigatorconnect/postmessage-cross-origin.html
|
| index 2e09d74f5c232b7d6904e427afdfdd0b4334f5b4..723a6196740f56cd8b4e3e3ac197150f1b7455d6 100644
|
| --- a/LayoutTests/http/tests/navigatorconnect/connect.html
|
| +++ b/LayoutTests/http/tests/navigatorconnect/postmessage-cross-origin.html
|
| @@ -1,17 +1,19 @@
|
| <!DOCTYPE html>
|
| <title>
|
| - Tests accepting and rejecting connections calling navigator.connect from
|
| - a same origin page.
|
| + Tests posting messages over a navigator.connect initiated channel from a cross
|
| + origin iframe.
|
| </title>
|
| <script src="../../resources/testharness.js"></script>
|
| <script src="../../resources/testharnessreport.js"></script>
|
| <script src="../../resources/testharness-helpers.js"></script>
|
| <script src="../serviceworker/resources/test-helpers.js"></script>
|
| -<script src="resources/connect-tests.js"></script>
|
| +<script src="resources/test-helpers.js"></script>
|
| +<script src="resources/postmessage-tests.js"></script>
|
| +<body>
|
| <script>
|
| +var cross_origin = get_host_info().UNAUTHENTICATED_ORIGIN;
|
| var sw_scope = 'resources/service-worker-scope' + window.location.pathname;
|
|
|
| -run_connect_tests(function(t, service) {
|
| - return navigator.connect(service);
|
| - });
|
| +run_postmessage_tests(cross_origin, cross_origin_connect);
|
| </script>
|
| +</body>
|
|
|