Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/webappapis/animation-frames/callback-handle.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>AnimationTiming Test: FrameRequestCallback - valid callback handle</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(() => {
let requestId = window.requestAnimationFrame(() => {});
assert_greater_than(requestId, 0, "callback handle is a integer greater than zero");
}, "Check window.requestAnimationFrame can return a valid callback handle");
</script>