| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta charset="utf-8" /> | |
| 5 <title>idlharness test</title> | |
| 6 <link rel="author" title="W3C" href="http://www.w3.org/" /> | |
| 7 <link rel="help" href="http://www.w3.org/TR/hr-time/#sec-extenstions-performance
-interface"/> | |
| 8 <script src="/w3c/resources/testharness.js"></script> | |
| 9 <script src="/w3c/resources/testharnessreport.js"></script> | |
| 10 <script src="/w3c/resources/WebIDLParser.js"></script> | |
| 11 <script src="/w3c/resources/idlharness.js"></script> | |
| 12 </head> | |
| 13 <body> | |
| 14 <h1>idlharness test</h1> | |
| 15 <p>This test validates the WebIDL included in the High Resolution Time specifica
tion.</p> | |
| 16 | |
| 17 <pre id='untested_idl' style='display:none'> | |
| 18 | |
| 19 interface Window { | |
| 20 }; | |
| 21 | |
| 22 interface Performance { | |
| 23 }; | |
| 24 | |
| 25 partial interface Window { | |
| 26 [Replaceable] readonly attribute Performance performance; | |
| 27 }; | |
| 28 </pre> | |
| 29 | |
| 30 <pre id='idl'> | |
| 31 typedef double DOMHighResTimeStamp; | |
| 32 | |
| 33 partial interface Performance { | |
| 34 DOMHighResTimeStamp now(); | |
| 35 }; | |
| 36 </pre> | |
| 37 | |
| 38 <script> | |
| 39 | |
| 40 (function() { | |
| 41 var idl_array = new IdlArray(); | |
| 42 | |
| 43 idl_array.add_untested_idls(document.getElementById("untested_idl").textConten
t); | |
| 44 idl_array.add_idls(document.getElementById("idl").textContent); | |
| 45 | |
| 46 idl_array.add_objects({Performance: ["window.performance"]}); | |
| 47 | |
| 48 idl_array.test(); | |
| 49 })(); | |
| 50 | |
| 51 </script> | |
| 52 | |
| 53 <div id="log"></div> | |
| 54 | |
| 55 </body> | |
| 56 </html> | |
| OLD | NEW |