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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html

Issue 1314123002: Remove hard-coded origins in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/serviceworker/resources/fetch-request-html-imports-iframe.html
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html b/LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html
index 485128619eac80de5e646d78e4db9cd5d748002e..e096c149909ad8b3292a73acc2b799b6fb913134 100644
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-request-html-imports-iframe.html
@@ -1,2 +1,13 @@
-<link id="same" rel="import" href="http://127.0.0.1:8000/dummy-dir/same.html">
-<link id="other" rel="import" href="http://localhost:8000/dummy-dir/other.html">
+<script src="../../resources/get-host-info.js"></script>
+<script type="text/javascript">
+ var hostInfo = get_host_info();
+ var makeLink = function(id, url) {
+ var link = document.createElement('link');
+ link.rel = 'import'
+ link.id = id;
+ link.href = url;
+ document.documentElement.appendChild(link);
+ };
+ makeLink('same', hostInfo.HTTP_ORIGIN + '/dummy-dir/same.html');
+ makeLink('other', hostInfo.HTTP_REMOTE_ORIGIN + '/dummy-dir/other.html');
+</script>

Powered by Google App Engine
This is Rietveld 408576698