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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js

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/interfaces-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
index 00f4f9d40b68f27c52832dcc1254466f64487a66..c24f676a109b616af419dece417dfc328d43e411 100644
--- a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
@@ -92,11 +92,9 @@ test(function() {
assert_equals(
new FetchEvent('FetchEvent', {isReload : true}).isReload, true,
'FetchEvent.isReload with option {isReload : true} should be true');
- var req = new Request('http://localhost/',
- {method: 'POST',
- headers: [['Content-Type', 'Text/Html']]});
+ var req = new Request('https://www.google.com/', {method: 'POST'});
nhiroki 2015/08/26 09:02:28 example.com could be better because this will be u
jeremyarcher 2015/08/27 07:45:44 Done.
assert_equals(
- new FetchEvent('FetchEvent', {request : req, isReload : true}).request.url,
- 'http://localhost/',
+ new FetchEvent('FetchEvent', {request: req, isReload: true}).request.url,
+ 'https://www.google.com/',
'FetchEvent.request.url should return the value it was initialized to');
}, 'Event constructors');

Powered by Google App Engine
This is Rietveld 408576698