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); |