OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link rel="help" href="https://github.com/WICG/get-installed-related-apps/blob/m
aster/EXPLAINER.md"> |
| 3 <script src=../resources/testharness.js></script> |
| 4 <script src=../resources/testharnessreport.js></script> |
| 5 <script src=../resources/WebIDLParser.js></script> |
| 6 <script src=../resources/idlharness.js></script> |
| 7 <script type="text/plain" id="untested"> |
| 8 interface Navigator { |
| 9 }; |
| 10 </script> |
| 11 <script type="text/plain" id="tested"> |
| 12 [NoInterfaceObject] |
| 13 interface RelatedApplication { |
| 14 readonly attribute DOMString platform; |
| 15 readonly attribute DOMString url; |
| 16 readonly attribute DOMString id; |
| 17 }; |
| 18 partial interface Navigator { |
| 19 Promise<RelatedApplication> getInstalledRelatedApps(); |
| 20 }; |
| 21 </script> |
| 22 <script> |
| 23 "use strict"; |
| 24 var idl_array = new IdlArray(); |
| 25 idl_array.add_untested_idls(document.querySelector("#untested").textContent)
; |
| 26 idl_array.add_idls(document.querySelector('#tested').textContent); |
| 27 idl_array.add_objects({ |
| 28 Navigator: ['navigator'] |
| 29 }); |
| 30 idl_array.test(); |
| 31 </script> |
OLD | NEW |