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

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: Enable more tests Created 6 years, 2 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-testharness.js'); 2 importScripts('worker-testharness.js');
3 importScripts('/resources/testharness-helpers.js');
3 4
4 test(function() { 5 test(function() {
5 var EVENT_HANDLER = 'object'; 6 var EVENT_HANDLER = 'object';
6 7
7 verifyInterface('ServiceWorkerGlobalScope', 8 verifyInterface('ServiceWorkerGlobalScope',
8 self, 9 self,
9 { 10 {
10 scope: 'string', 11 scope: 'string',
11 clients: 'object', 12 clients: 'object',
12 close: 'function', 13 close: 'function',
(...skipping 17 matching lines...) Expand all
30 self.caches, 31 self.caches,
31 { 32 {
32 match: 'function', 33 match: 'function',
33 get: 'function', 34 get: 'function',
34 has: 'function', 35 has: 'function',
35 create: 'function', 36 create: 'function',
36 delete: 'function', 37 delete: 'function',
37 keys: 'function' 38 keys: 'function'
38 }); 39 });
39 }, 'Interfaces and attributes in ServiceWorkerGlobalScope'); 40 }, 'Interfaces and attributes in ServiceWorkerGlobalScope');
41
42 promise_test(function(t) {
43 return create_temporary_cache(t)
44 .then(function(cache) {
45 verifyInterface('Cache',
46 cache,
47 {
48 match: 'function',
49 matchAll: 'function',
50 add: 'function',
51 addAll: 'function',
52 put: 'function',
53 delete: 'function',
54 keys: 'function'
55 });
56 });
57 }, 'Cache');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698