blob: 53f8158c4139b9885aa7ef73dbc4d558896f9cf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
description("This tests cancelling a webkitRequestAnimationFrame callback");
var callbackFired = false;
var e = document.getElementById("e");
var id = window.webkitRequestAnimationFrame(function() {
}, e);
window.webkitCancelAnimationFrame(id);
if (window.layoutTestController)
layoutTestController.display();
setTimeout(function() {
shouldBeFalse("callbackFired");
}, 100);
if (window.layoutTestController)
layoutTestController.waitUntilDone();
setTimeout(function() {
isSuccessfullyParsed();
if (window.layoutTestController)
layoutTestController.notifyDone();
}, 200);
|