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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-worker.js

Issue 2836233002: Upstream service worker `fetch` tests to WPT (Closed)
Patch Set: Extend "-expected.txt" file with reference to new sub-test Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-iframe.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-worker.js
deleted file mode 100644
index 712c4b73c9bc6da7c828a4c194b09ad9018d47ae..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-worker.js
+++ /dev/null
@@ -1,14 +0,0 @@
-self.addEventListener('fetch', function(event) {
- var testcase = new URL(event.request.url).search;
- switch (testcase) {
- case '?response-object':
- event.respondWith(new Response('body'));
- break;
- case '?response-promise-object':
- event.respondWith(Promise.resolve(new Response('body')));
- break;
- case '?other-value':
- event.respondWith(new Object());
- break;
- }
- });
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-event-respond-with-argument-iframe.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698