blob: b4cb3c47b919e78a2a942cce12670307b2da0f10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
description("Tests that requestAnimationFrame is disabled when the setting/preference is false. Note: since the setting is true by default, this usually can't be tested directly in a browser.");
var callbackInvoked = false;
window.webkitRequestAnimationFrame(function() {
callbackInvoked = true;
});
if (window.testRunner)
testRunner.display();
setTimeout(function() {
shouldBeFalse("callbackInvoked");
}, 100);
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
isSuccessfullyParsed();
if (window.testRunner)
testRunner.notifyDone();
}, 200);
|