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

Unified Diff: LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.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/serviceworkerobject-scripturl.html
diff --git a/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html b/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html
index ab88de16bbe03cfc7f12a9e92a93f38319faa996..2fc512b19202baaccff9aef0fc1432238bf60a26 100644
--- a/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html
+++ b/LayoutTests/http/tests/serviceworker/serviceworkerobject-scripturl.html
@@ -22,7 +22,7 @@ function url_test(name, url) {
url_test('relative', 'resources/empty-worker.js');
url_test('with-fragment', 'resources/empty-worker.js#ref');
-url_test('absolute',
- 'http://127.0.0.1:8000/serviceworker/resources/empty-worker.js');
+url_test('absolute', window.location.origin +
+ '/serviceworker/resources/empty-worker.js');
</script>

Powered by Google App Engine
This is Rietveld 408576698