Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Unified Diff: LayoutTests/http/tests/fetch/window/thorough/nocors.html

Issue 1314123002: Remove hard-coded origins in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add ?pipe=sub and make test first parameter. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/fetch/window/thorough/nocors.html
diff --git a/LayoutTests/http/tests/fetch/window/thorough/nocors.html b/LayoutTests/http/tests/fetch/window/thorough/nocors.html
index 41dcd56fe57b0946bdf4f93a4d33fb8af46c629f..9e2f71c581e88d674bfa789ed625b2b273e43218 100644
--- a/LayoutTests/http/tests/fetch/window/thorough/nocors.html
+++ b/LayoutTests/http/tests/fetch/window/thorough/nocors.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>

Powered by Google App Engine
This is Rietveld 408576698