OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <title>Service Workers: Response Objects</title> | 3 <title>Service Workers: Response Objects</title> |
4 <head> | 4 <head> |
5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#response-obj
ects"> | 5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#response-obj
ects"> |
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 29 matching lines...) Expand all Loading... |
40 readonly attribute HeaderMap headers; | 40 readonly attribute HeaderMap headers; |
41 attribute DOMString url; | 41 attribute DOMString url; |
42 Promise<Blob> toBlob(); | 42 Promise<Blob> toBlob(); |
43 }; | 43 }; |
44 | 44 |
45 dictionary ResponseInit { | 45 dictionary ResponseInit { |
46 unsigned short status = 200; | 46 unsigned short status = 200; |
47 ByteString statusText = "OK"; | 47 ByteString statusText = "OK"; |
48 HeaderMap headers; | 48 HeaderMap headers; |
49 }; | 49 }; |
50 </pre> | 50 </script> |
51 | 51 |
52 | 52 |
53 | 53 |
54 <script type=text/plain id="untested_idls"> | 54 <script type=text/plain id="untested_idls"> |
55 interface HeaderMap {}; | 55 interface HeaderMap {}; |
56 interface Blob {}; | 56 interface Blob {}; |
57 </pre> | 57 </script> |
58 | 58 |
59 <script> | 59 <script> |
60 var idl_array = new IdlArray(); | 60 var idl_array = new IdlArray(); |
61 idl_array.add_untested_idls(document.getElementById("untested_idls").tex
tContent); | 61 idl_array.add_untested_idls(document.getElementById("untested_idls").tex
tContent); |
62 idl_array.add_idls(document.getElementById("idl_0").textContent); | 62 idl_array.add_idls(document.getElementById("idl_0").textContent); |
63 idl_array.add_objects({ | 63 idl_array.add_objects({ |
64 AbstractResponse: ["throw new Error ('No object defined for the Abst
ractResponse interface')"], | 64 AbstractResponse: ["throw new Error ('No object defined for the Abst
ractResponse interface')"], |
65 OpaqueResponse: ["throw new Error ('No object defined for the Opaque
Response interface')"], | 65 OpaqueResponse: ["throw new Error ('No object defined for the Opaque
Response interface')"], |
66 CORSResponse: ["throw new Error ('No object defined for the CORSResp
onse interface')"], | 66 CORSResponse: ["throw new Error ('No object defined for the CORSResp
onse interface')"], |
67 Response: ["throw new Error ('No object defined for the Response int
erface')"], | 67 Response: ["throw new Error ('No object defined for the Response int
erface')"], |
68 ResponseInit: ["throw new Error ('No object defined for the Response
Init dictionary')"] | 68 ResponseInit: ["throw new Error ('No object defined for the Response
Init dictionary')"] |
69 }); | 69 }); |
70 idl_array.test(); | 70 idl_array.test(); |
71 </script> | 71 </script> |
72 | 72 |
73 </body> | 73 </body> |
74 </html> | 74 </html> |
75 | 75 |
OLD | NEW |