Index: LayoutTests/http/tests/fetch/window/thorough/nocors-other-https.html |
diff --git a/LayoutTests/http/tests/fetch/window/thorough/nocors-other-https.html b/LayoutTests/http/tests/fetch/window/thorough/nocors-other-https.html |
index d30f0801f932e845f7eb0f475d304763ad2bb166..41246d94d5ce08bda74320d2666950f3b2d1d01e 100644 |
--- a/LayoutTests/http/tests/fetch/window/thorough/nocors-other-https.html |
+++ b/LayoutTests/http/tests/fetch/window/thorough/nocors-other-https.html |
@@ -4,6 +4,7 @@ |
<script src = "/resources/testharness.js"></script> |
<script src = "/resources/testharness-helpers.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> |
@@ -12,13 +13,17 @@ |
</head> |
<body> |
<script> |
+var host_info = get_host_info(); |
function start(t) { |
executeTests(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> |
<script src = "/fetch/resources/init.js"></script> |