OLD | NEW |
(Empty) | |
| 1 <title>Static Range IDL tests</title> |
| 2 <link rel="help" href="http://garykac.github.io/staticrange/index.html#interface
-staticrange"/> |
| 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 |
| 8 <pre id="untested_idl"> |
| 9 interface Node { |
| 10 }; |
| 11 </pre> |
| 12 |
| 13 <pre id='idl'> |
| 14 interface StaticRange { |
| 15 readonly attribute Node startContainer; |
| 16 readonly attribute unsigned long startOffset; |
| 17 readonly attribute Node endContainer; |
| 18 readonly attribute unsigned long endOffset; |
| 19 readonly attribute boolean collapsed; |
| 20 }; |
| 21 </pre> |
| 22 |
| 23 <script> |
| 24 (function(){ |
| 25 "use strict"; |
| 26 const idl_array = new IdlArray(); |
| 27 idl_array.add_untested_idls(document.getElementById("untested_idl").textCont
ent); |
| 28 idl_array.add_idls(document.getElementById("idl").textContent); |
| 29 idl_array.test(); |
| 30 })(); |
| 31 </script> |
OLD | NEW |