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

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: Fix fetch(...) tests relying on hard-coded origins. 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..67d99183a55596d38d9becff6f17841eca93634e 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.example.com/', {method: 'POST'});
assert_equals(
- new FetchEvent('FetchEvent', {request : req, isReload : true}).request.url,
- 'http://localhost/',
+ new FetchEvent('FetchEvent', {request: req, isReload: true}).request.url,
+ 'https://www.example.com/',
'FetchEvent.request.url should return the value it was initialized to');
}, 'Event constructors');

Powered by Google App Engine
This is Rietveld 408576698