Index: LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/auth.html |
diff --git a/LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/auth.html b/LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/auth.html |
index 284c5bb8d16b30d0652a46d5001570fa22a87f78..fac6a350b03942200cb82f4755328df1a2b2f7b0 100644 |
--- a/LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/auth.html |
+++ b/LayoutTests/http/tests/fetch/serviceworker-proxied/thorough/auth.html |
@@ -3,6 +3,7 @@ |
<meta name="timeout" content="long"></meta> |
<script src = "/resources/testharness.js"></script> |
<script src = "/resources/testharnessreport.js"></script> |
+<script src = "/resources/get-host-info.js?pipe=sub"></script> |
<script src = "/serviceworker/resources/test-helpers.js"></script> |
<script src = "/fetch/resources/fetch-test-options.js"></script> |
<script src = "/fetch/resources/fetch-test-helpers.js"></script> |
@@ -16,13 +17,17 @@ function onlyOnServiceWorkerProxiedTest(checkFuncs) { |
</head> |
<body> |
<script> |
+var host_info = get_host_info(); |
function start(t) { |
executeServiceWorkerProxiedTests(TEST_TARGETS); |
t.done(); |
} |
function init(test) { |
- return login(test) |
- .then(function() {return login_https(test);}); |
+ return login(test, host_info["HTTP_ORIGIN"], host_info["HTTP_REMOTE_ORIGIN"]) |
+ .then(function() { |
+ return login(test, host_info["HTTPS_ORIGIN"], |
+ host_info["HTTPS_REMOTE_ORIGIN"]); |
+ }); |
} |
</script> |