1 description("Tests one requestAnimationFrame callback cancelling a second");
3 var e
= document
.getElementById("e");
5 var callbackFired
= false;
6 var cancelFired
= false;
8 window
.requestAnimationFrame(function() {
10 window
.cancelAnimationFrame(secondCallbackId
);
13 secondCallbackId
= window
.requestAnimationFrame(function() {
17 requestAnimationFrame(function() {
18 shouldBeFalse("callbackFired");
19 shouldBeTrue("cancelFired");
20 isSuccessfullyParsed();
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
25 if (window
.testRunner
)
26 testRunner
.waitUntilDone();