blob: 2786a34a70c6a3bad8c12a6dfce4629b639d76b3 [file] [log] [blame]
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);