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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/stub-4.6.3-cache-storage.html

Issue 2446483002: Import wpt@c5a14f553cba5f197743b9af605a84eddd8692a2 (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698