OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <title>Service Workers: InstallEvent</title> |
| 4 <head> |
| 5 <link rel="help" href="https://w3c.github.io/ServiceWorker/#install-even
t-section"> |
| 6 <script src="/resources/testharness.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 |
| 9 <script src=/resources/WebIDLParser.js></script> |
| 10 <script src=/resources/idlharness.js></script> |
| 11 |
| 12 </head> |
| 13 <body> |
| 14 |
| 15 <script type=text/plain id="idl_0"> |
| 16 interface InstallEvent : InstallPhaseEvent { |
| 17 readonly attribute ServiceWorker? activeWorker; |
| 18 void replace(); |
| 19 }; |
| 20 </pre> |
| 21 |
| 22 <!-- |
| 23 Service Workers use the `[InstallEvent][1]` interface for `[install][2]` event. |
| 24 |
| 25 [1]: #install-event-interface |
| 26 [2]: #install-event |
| 27 --> |
| 28 |
| 29 |
| 30 <script type=text/plain id="untested_idls"> |
| 31 interface ServiceWorker {}; |
| 32 interface InstallPhaseEvent {}; |
| 33 </pre> |
| 34 |
| 35 <script> |
| 36 var idl_array = new IdlArray(); |
| 37 idl_array.add_untested_idls(document.getElementById("untested_idls").tex
tContent); |
| 38 idl_array.add_idls(document.getElementById("idl_0").textContent); |
| 39 idl_array.add_objects({ |
| 40 InstallEvent: ["throw new Error ('No object defined for the InstallE
vent interface')"] |
| 41 }); |
| 42 idl_array.test(); |
| 43 </script> |
| 44 |
| 45 </body> |
| 46 </html> |
| 47 |
OLD | NEW |