OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <title>Service Workers: CacheStorage</title> | 3 <title>Service Workers: CacheStorage</title> |
4 <head> | 4 <head> |
5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#cache-storag
e"> | 5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#cache-storag
e"> |
6 <script src="/resources/testharness.js"></script> | 6 <script src="/resources/testharness.js"></script> |
7 <script src="/resources/testharnessreport.js"></script> | 7 <script src="/resources/testharnessreport.js"></script> |
8 | 8 |
9 <script src=/resources/WebIDLParser.js></script> | 9 <script src=/resources/WebIDLParser.js></script> |
10 <script src=/resources/idlharness.js></script> | 10 <script src=/resources/idlharness.js></script> |
(...skipping 11 matching lines...) Expand all Loading... |
22 Promise<any> clear(); | 22 Promise<any> clear(); |
23 Promise<any> delete(DOMString key); | 23 Promise<any> delete(DOMString key); |
24 void forEach(CacheStorageIterationCallback callback, optional object thisArg); | 24 void forEach(CacheStorageIterationCallback callback, optional object thisArg); |
25 Promise<sequence<any>> entries(); | 25 Promise<sequence<any>> entries(); |
26 Promise<sequence<DOMString>> keys(); | 26 Promise<sequence<DOMString>> keys(); |
27 Promise<sequence<Cache>> values(); | 27 Promise<sequence<Cache>> values(); |
28 Promise<unsigned long> size(); | 28 Promise<unsigned long> size(); |
29 }; | 29 }; |
30 | 30 |
31 callback CacheStorageIterationCallback = void (Cache value, DOMString key, Cache
Storage map); | 31 callback CacheStorageIterationCallback = void (Cache value, DOMString key, Cache
Storage map); |
32 </pre> | 32 </script> |
33 | 33 |
34 <!-- | 34 <!-- |
35 **Note**:[CacheStorage][1]interface is designed to largely conform | 35 **Note**:[CacheStorage][1]interface is designed to largely conform |
36 to[ECMAScript 6 Map objects][2]but entirely async, and with additional | 36 to[ECMAScript 6 Map objects][2]but entirely async, and with additional |
37 convenience methods. | 37 convenience methods. |
38 | 38 |
39 [1]: #cache-storage-interface | 39 [1]: #cache-storage-interface |
40 [2]: http://goo.gl/gNnDPO | 40 [2]: http://goo.gl/gNnDPO |
41 --> | 41 --> |
42 | 42 |
43 | 43 |
44 <script type=text/plain id="untested_idls"> | 44 <script type=text/plain id="untested_idls"> |
45 interface ScalarValueString {}; | 45 interface ScalarValueString {}; |
46 interface Cache {}; | 46 interface Cache {}; |
47 </pre> | 47 </script> |
48 | 48 |
49 <script> | 49 <script> |
50 var idl_array = new IdlArray(); | 50 var idl_array = new IdlArray(); |
51 idl_array.add_untested_idls(document.getElementById("untested_idls").tex
tContent); | 51 idl_array.add_untested_idls(document.getElementById("untested_idls").tex
tContent); |
52 idl_array.add_idls(document.getElementById("idl_0").textContent); | 52 idl_array.add_idls(document.getElementById("idl_0").textContent); |
53 idl_array.add_objects({ | 53 idl_array.add_objects({ |
54 CacheStorage: ["throw new Error ('No object defined for the CacheSto
rage interface')"], | 54 CacheStorage: ["throw new Error ('No object defined for the CacheSto
rage interface')"], |
55 CacheStorageIterationCallback: ["throw new Error ('No object defined
for the CacheStorageIterationCallback callback')"] | 55 CacheStorageIterationCallback: ["throw new Error ('No object defined
for the CacheStorageIterationCallback callback')"] |
56 }); | 56 }); |
57 idl_array.test(); | 57 idl_array.test(); |
58 </script> | 58 </script> |
59 | 59 |
60 </body> | 60 </body> |
61 </html> | 61 </html> |
62 | 62 |
OLD | NEW |