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="Kensaku Komatsu" href="mailto:kensaku.komatsu@gmail.co
m" /> |
| 7 <link rel="help" href="http://www.w3.org/TR/animation-timing/#definitions"/> |
| 8 <script src="../../../../../resources/testharness.js"></script> |
| 9 <script src="../../../../../resources/testharnessreport.js"></script> |
| 10 <script src="../../../../../resources/WebIDLParser.js"></script> |
| 11 <script src="../../../../../resources/idlharness.js"></script> |
| 12 </head> |
| 13 <body> |
| 14 <h1>idlharness test</h1> |
| 15 <p>This test validates the WebIDL included in the Timing control for script-base
d animations specification.</p> |
| 16 |
| 17 <pre id='untested_idl' style='display:none'> |
| 18 [PrimaryGlobal] |
| 19 interface Window { |
| 20 }; |
| 21 </pre> |
| 22 |
| 23 <pre id='idl'> |
| 24 partial interface Window { |
| 25 long requestAnimationFrame(FrameRequestCallback callback); |
| 26 void cancelAnimationFrame(long handle); |
| 27 }; |
| 28 |
| 29 callback FrameRequestCallback = void (DOMHighResTimeStamp time); |
| 30 </pre> |
| 31 |
| 32 <script> |
| 33 |
| 34 (function() { |
| 35 var idl_array = new IdlArray(); |
| 36 |
| 37 idl_array.add_untested_idls(document.getElementById("untested_idl").textConten
t); |
| 38 idl_array.add_idls(document.getElementById("idl").textContent); |
| 39 |
| 40 idl_array.add_objects({Window: ["window"]}); |
| 41 |
| 42 idl_array.test(); |
| 43 })(); |
| 44 |
| 45 </script> |
| 46 |
| 47 <div id="log"></div> |
| 48 |
| 49 </body> |
| 50 </html> |
OLD | NEW |