blob: ec2a99c607a41c7877ada9c0696a21e5495ebce4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<span id="e"></span>
<span id="f"></span>
<script>
description("This tests cancelling a requestAnimationFrame callback");
var callbackFired = false;
var e = document.getElementById("e");
var id = window.requestAnimationFrame(function() {
}, e);
window.cancelAnimationFrame(id);
if (window.testRunner)
testRunner.displayAndTrackRepaints();
setTimeout(function() {
shouldBeFalse("callbackFired");
}, 100);
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
isSuccessfullyParsed();
if (window.testRunner)
testRunner.notifyDone();
}, 200);
</script>
</body>
</html>