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

Side by Side Diff: LayoutTests/http/tests/cachestorage/resources/common-worker.js

Issue 1032623008: Expose Cache Storage API in global window/worker scope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update webexposed expectations Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 self.onmessage = function(e) {
2 var cache_name = e.data.name;
3
4 self.caches.open(cache_name)
5 .then(function(cache) {
6 return Promise.all([
7 cache.put('https://example.com/a', new Response('a')),
8 cache.put('https://example.com/b', new Response('b')),
9 cache.put('https://example.com/c', new Response('c'))
10 ]);
11 })
12 .then(function() {
13 self.postMessage('ok');
14 });
15 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698