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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-css-base-url-worker.js

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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/imported/wpt/service-workers/service-worker/resources/fetch-request-css-base-url-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-base-url-worker.js b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-css-base-url-worker.js
similarity index 79%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-base-url-worker.js
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-css-base-url-worker.js
index 69269be325f423aa3940ea7ab8cc55556687d693..0d9244ec75caa347f80529415e0060fe8b31d972 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-base-url-worker.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/fetch-request-css-base-url-worker.js
@@ -1,5 +1,5 @@
-importScripts('../../resources/get-host-info.js');
-importScripts('test-helpers.js');
+importScripts('../resources/get-host-info.sub.js');
+importScripts('test-helpers.sub.js');
var port = undefined;
@@ -15,7 +15,7 @@ self.addEventListener('fetch', function(event) {
var url = event.request.url;
if (url.indexOf('fetch-request-css-base-url-style.css') != -1) {
event.respondWith(fetch(
- get_host_info()['HTTP_REMOTE_ORIGIN'] + base_path() +
+ get_host_info()['HTTPS_REMOTE_ORIGIN'] + base_path() +
'fetch-request-css-base-url-style.css',
{mode: 'no-cors'}));
} else if (url.indexOf('dummy.png') != -1) {

Powered by Google App Engine
This is Rietveld 408576698