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-timestamp.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>AnimationTiming Test: FrameRequestCallback - timestamp argument</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
async_test(t => {
requestAnimationFrame(t.step_func_done(time => {
assert_equals(typeof time, "number", "callback contains a number argument");
}))
}, "Check FrameRequestCallback has a DOMHighResTimeStamp argument");
</script>