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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js

Issue 2858933003: Upstream service worker `fetch` test to WPT (Closed)
Patch Set: Resolve conflict in `enable-blink-features=LayoutNG` Created 3 years, 7 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/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js
deleted file mode 100644
index 96c1447574934e9a28dabd7bf4b904689722229a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js
+++ /dev/null
@@ -1,20 +0,0 @@
-importScripts('../../resources/get-host-info.js');
-importScripts('test-helpers.js');
-
-self.addEventListener('fetch', function(event) {
- if (event.request.url.indexOf('cross-origin-css.css') != -1) {
- event.respondWith(fetch(
- get_host_info()['HTTP_REMOTE_ORIGIN'] + base_path() +
- 'fetch-request-css-cross-origin-mime-check-cross.css',
- {mode: 'no-cors'}));
- } else if (event.request.url.indexOf('cross-origin-html.css') != -1) {
- event.respondWith(fetch(
- get_host_info()['HTTP_REMOTE_ORIGIN'] + base_path() +
- 'fetch-request-css-cross-origin-mime-check-cross.html',
- {mode: 'no-cors'}));
- } else if (event.request.url.indexOf('synthetic.css') != -1) {
- event.respondWith(new Response("#synthetic { color: blue; }"));
- } else {
- event.respondWith(fetch(event.request));
- }
- });

Powered by Google App Engine
This is Rietveld 408576698