Index: LayoutTests/http/tests/navigatorconnect/postmessage.html |
diff --git a/LayoutTests/http/tests/navigatorconnect/postmessage.html b/LayoutTests/http/tests/navigatorconnect/postmessage.html |
index 1d76f71d83e093f2f494bd79a1585262bbbe55fd..fdffeb29f31753e7cee3ffd92c08c253862e5fc8 100644 |
--- a/LayoutTests/http/tests/navigatorconnect/postmessage.html |
+++ b/LayoutTests/http/tests/navigatorconnect/postmessage.html |
@@ -7,11 +7,12 @@ |
<script src="../../resources/testharnessreport.js"></script> |
<script src="../../resources/testharness-helpers.js"></script> |
<script src="../serviceworker/resources/test-helpers.js"></script> |
+<script src="resources/test-helpers.js"></script> |
<script src="resources/postmessage-tests.js"></script> |
<script> |
var sw_scope = 'resources/service-worker-scope' + window.location.pathname; |
run_postmessage_tests(location.origin, function(t, service) { |
- return navigator.connect(service); |
+ return first_to_resolve([wrap_in_port(navigator.services.connect(service)), navigator.connect(service)]); |
}); |
</script> |