blob: ba94860cd9c27507d18159362f527b1847357725 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description("Tests basic use of requestAnimationFrame");
jsTestIsAsync = true;
if (window.testRunner)
testRunner.displayAndTrackRepaints();
let callbackCount = 0;
let rAFCallback = () => {
testPassed("requestAnimationFrame callback was called");
callbackCount++;
if (callbackCount < 5)
requestAnimationFrame(rAFCallback);
else
finishJSTest();
}
requestAnimationFrame(rAFCallback);
</script>
</body>
</html>