Chromium Code Reviews| 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 [Constructor, | |
|
foolip
2017/04/10 07:37:17
Match the spec byte-for-byte if possible. (It does
chongz
2017/04/12 20:47:11
Removed
```
[Constructor, Exposed=Window]
```
to m
| |
| 15 Exposed=Window] | |
| 16 interface StaticRange { | |
| 17 readonly attribute Node startContainer; | |
| 18 readonly attribute unsigned long startOffset; | |
| 19 readonly attribute Node endContainer; | |
| 20 readonly attribute unsigned long endOffset; | |
| 21 readonly attribute boolean collapsed; | |
| 22 }; | |
| 23 </pre> | |
| 24 | |
| 25 <script> | |
| 26 (function(){ | |
| 27 "use strict"; | |
| 28 const idl_array = new IdlArray(); | |
| 29 idl_array.add_untested_idls(document.getElementById("untested_idl").textCont ent); | |
| 30 idl_array.add_idls(document.getElementById("idl").textContent); | |
| 31 idl_array.add_objects({ | |
| 32 StaticRange: ['new StaticRange()'], | |
| 33 }); | |
| 34 idl_array.test(); | |
| 35 })(); | |
| 36 </script> | |
| OLD | NEW |