callback-handle.html (656B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>AnimationTiming Test: FrameRequestCallback - valid callback handle</title> 4 <link rel="author" title="Intel" href="http://www.intel.com"> 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#animation-frames"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <div id="log"></div> 9 <script> 10 11 test(() => { 12 let requestId = window.requestAnimationFrame(() => {}); 13 assert_greater_than(requestId, 0, "callback handle is a integer greater than zero"); 14 }, "Check window.requestAnimationFrame can return a valid callback handle"); 15 16 </script>