| kensakukomatsu | 6860835 | 2013-11-09 08:31:42 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta charset="utf-8" /> |
| 5 | <title>idlharness test</title> |
| kensakukomatsu | 8903696 | 2013-11-09 08:41:20 | [diff] [blame] | 6 | <link rel="author" title="Kensaku Komatsu" href="mailto:kensaku.komatsu@gmail.com" /> |
| kensakukomatsu | 6860835 | 2013-11-09 08:31:42 | [diff] [blame] | 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/webidl2/lib/webidl2.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-based animations specification.</p> |
| 16 | |
| 17 | <pre id='untested_idl' style='display:none'> |
| 18 | interface Window { |
| 19 | }; |
| 20 | </pre> |
| 21 | |
| 22 | <pre id='idl'> |
| 23 | partial interface Window { |
| 24 | long requestAnimationFrame(FrameRequestCallback callback); |
| 25 | void cancelAnimationFrame(long handle); |
| 26 | }; |
| plehegar | 9c57d74 | 2014-04-24 19:37:46 | [diff] [blame] | 27 | |
| 28 | callback FrameRequestCallback = void (DOMHighResTimeStamp time); |
| kensakukomatsu | 6860835 | 2013-11-09 08:31:42 | [diff] [blame] | 29 | </pre> |
| 30 | |
| 31 | <script> |
| 32 | |
| 33 | (function() { |
| 34 | var idl_array = new IdlArray(); |
| 35 | |
| 36 | idl_array.add_untested_idls(document.getElementById("untested_idl").textContent); |
| 37 | idl_array.add_idls(document.getElementById("idl").textContent); |
| 38 | |
| 39 | idl_array.add_objects({Window: ["window"]}); |
| 40 | |
| 41 | idl_array.test(); |
| 42 | })(); |
| 43 | |
| 44 | </script> |
| 45 | |
| 46 | <div id="log"></div> |
| 47 | |
| 48 | </body> |
| 49 | </html> |