blob: 09a616b5e68b790da5287afdddc75daa21504159 [file] [log] [blame]
kensakukomatsu68608352013-11-09 08:31:421<!DOCTYPE html>
2<html>
3<head>
4<meta charset="utf-8" />
5<title>idlharness test</title>
kensakukomatsu89036962013-11-09 08:41:206<link rel="author" title="Kensaku Komatsu" href="mailto:kensaku.komatsu@gmail.com" />
kensakukomatsu68608352013-11-09 08:31:427<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'>
18interface Window {
19};
20</pre>
21
22<pre id='idl'>
23partial interface Window {
24 long requestAnimationFrame(FrameRequestCallback callback);
25 void cancelAnimationFrame(long handle);
26};
plehegar9c57d742014-04-24 19:37:4627
28callback FrameRequestCallback = void (DOMHighResTimeStamp time);
kensakukomatsu68608352013-11-09 08:31:4229</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>