Index: LayoutTests/http/tests/navigatorconnect/connect.html |
diff --git a/LayoutTests/http/tests/navigatorconnect/connect.html b/LayoutTests/http/tests/navigatorconnect/connect.html |
index 2e09d74f5c232b7d6904e427afdfdd0b4334f5b4..e9b39b65fcc4f97df2c3ceebf15044d1d12eb007 100644 |
--- a/LayoutTests/http/tests/navigatorconnect/connect.html |
+++ b/LayoutTests/http/tests/navigatorconnect/connect.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/connect-tests.js"></script> |
<script> |
var sw_scope = 'resources/service-worker-scope' + window.location.pathname; |
run_connect_tests(function(t, service) { |
- return navigator.connect(service); |
+ return first_to_resolve([wrap_in_port(navigator.services.connect(service)), navigator.connect(service)]); |
}); |
</script> |