blob: 62f42951651282902902c373354be4984e2dd046 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
let firstFrameTimestamp = await new Promise(requestAnimationFrame);
let secondFrameTimestamp = await new Promise(requestAnimationFrame);
assert_greater_than(secondFrameTimestamp, firstFrameTimestamp);
}, "Timestamps of requestAnimationFrame() callbacks increase.");
</script>
</body>
</html>