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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 self.addEventListener('fetch', function(event) {
2 var testcase = new URL(event.request.url).search;
3 switch (testcase) {
4 case '?response-object':
5 event.respondWith(new Response('body'));
6 break;
7 case '?response-promise-object':
8 event.respondWith(Promise.resolve(new Response('body')));
9 break;
10 case '?other-value':
11 event.respondWith(new Object());
12 break;
13 }
14 });
OLDNEW
« 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