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

Side by Side Diff: LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js

Issue 425413002: [ServiceWorker] Tests for Cache (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More tests. Created 6 years, 4 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
1 importScripts('interfaces.js'); 1 importScripts('interfaces.js');
2 importScripts('worker-test-harness.js'); 2 importScripts('worker-test-harness.js');
3 3
4 test(function() { 4 test(function() {
5 var EVENT_HANDLER = 'object'; 5 var EVENT_HANDLER = 'object';
6 6
7 verifyInterface('ServiceWorkerGlobalScope', 7 verifyInterface('ServiceWorkerGlobalScope',
8 self, 8 self,
9 { 9 {
10 scope: 'string', 10 scope: 'string',
(...skipping 17 matching lines...) Expand all
28 verifyInterface('CacheStorage', 28 verifyInterface('CacheStorage',
29 self.caches, 29 self.caches,
30 { 30 {
31 match: 'function', 31 match: 'function',
32 get: 'function', 32 get: 'function',
33 has: 'function', 33 has: 'function',
34 create: 'function', 34 create: 'function',
35 delete: 'function', 35 delete: 'function',
36 keys: 'function' 36 keys: 'function'
37 }); 37 });
38
39 verifyInterface('Cache',
40 new Cache(),
41 {
42 match: 'function',
43 matchAll: 'function',
44 add: 'function',
45 addAll: 'function',
46 put: 'function',
47 delete: 'function',
48 keys: 'function',
49 });
38 }, 'Interfaces and attributes in ServiceWorkerGlobalScope'); 50 }, 'Interfaces and attributes in ServiceWorkerGlobalScope');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698