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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/foreign-fetch-helper-worker.js

Issue 2676733002: Upstream foreign fetch tests. (Closed)
Patch Set: minor cleanups Created 3 years, 10 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: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/foreign-fetch-helper-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-worker.js b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/foreign-fetch-helper-worker.js
similarity index 55%
rename from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-worker.js
rename to third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/foreign-fetch-helper-worker.js
index 9b9a293957d7a236f0b389735b085718a53a580f..7f0375bc705d528e2b9af7239514bb7d51772c18 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-helper-worker.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/foreign-fetch-helper-worker.js
@@ -1,8 +1,8 @@
-importScripts('../../resources/get-host-info.js');
+importScripts('get-host-info.sub.js');
var host_info = get_host_info();
self.onfetch = e => {
var remote_url = host_info.HTTPS_REMOTE_ORIGIN +
- '/serviceworker/resources/simple.txt?basic_sw';
+ new URL('./', location).pathname + 'simple.txt?basic_sw';
e.respondWith(fetch(remote_url));
};

Powered by Google App Engine
This is Rietveld 408576698