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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/request-body-blob-worker.js

Issue 1967683003: service worker: Wait for request body blobs to finish construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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', event => {
2 if (event.request.url.indexOf('?post-with-blob-body') == -1)
3 return;
4 event.respondWith(
5 event.request.text().then(resp => {
6 if (resp.indexOf("it's me the blob") == -1)
horo 2016/05/12 06:13:36 Nit: use single quotes
falken 2016/05/12 08:49:33 Done.
7 return new Response('fail');
8 if (resp.indexOf("and more blob!") == -1)
horo 2016/05/12 06:13:36 Nit: use single quotes
falken 2016/05/12 08:49:33 Done.
9 return new Response('fail');
10 return new Response('Pass');
11 }));
12 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698