OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 self.caches, | 30 self.caches, |
31 { | 31 { |
32 match: 'function', | 32 match: 'function', |
33 get: 'function', | 33 get: 'function', |
34 has: 'function', | 34 has: 'function', |
35 create: 'function', | 35 create: 'function', |
36 delete: 'function', | 36 delete: 'function', |
37 keys: 'function' | 37 keys: 'function' |
38 }); | 38 }); |
39 }, 'Interfaces and attributes in ServiceWorkerGlobalScope'); | 39 }, 'Interfaces and attributes in ServiceWorkerGlobalScope'); |
| 40 |
| 41 promise_test(function(t) { |
| 42 return create_temporary_cache(t) |
| 43 .then(function(cache) { |
| 44 verifyInterface('Cache', |
| 45 cache, |
| 46 { |
| 47 match: 'function', |
| 48 matchAll: 'function', |
| 49 add: 'function', |
| 50 addAll: 'function', |
| 51 put: 'function', |
| 52 delete: 'function', |
| 53 keys: 'function' |
| 54 }); |
| 55 }); |
| 56 }, 'Cache'); |
OLD | NEW |