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

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

Issue 2889153004: Upstream service worker "request" tests to WPT (Closed)
Patch Set: Add "use strict" directive 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', event => {
2 if (event.request.url.indexOf('?post-with-blob-body') == -1)
3 return;
4 event.respondWith(event.request.text().then(body => {
5 if (body.indexOf('it\'s me the blob') == -1)
6 return new Response('fail');
7 if (body.indexOf('and more blob!') == -1)
8 return new Response('fail');
9 return new Response('Pass');
10 }));
11 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698