Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / animation / script-tests / request-animation-frame-cancel2.js
blob080cb67af8f1a6ef143f5e24888f783c8f9ae68f
1 description("Tests one requestAnimationFrame callback cancelling a second");
3 var e = document.getElementById("e");
4 var secondCallbackId;
5 var callbackFired = false;
6 var cancelFired = false;
8 window.requestAnimationFrame(function() {
9 cancelFired = true;
10 window.cancelAnimationFrame(secondCallbackId);
11 }, e);
13 secondCallbackId = window.requestAnimationFrame(function() {
14 callbackFired = true;
15 }, e);
17 requestAnimationFrame(function() {
18 shouldBeFalse("callbackFired");
19 shouldBeTrue("cancelFired");
20 isSuccessfullyParsed();
21 if (window.testRunner)
22 testRunner.notifyDone();
23 });
25 if (window.testRunner)
26 testRunner.waitUntilDone();