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