blob: 9c27fa9797a4515f28bac92266823a5def2ac6cf [file] [log] [blame]
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.requestAnimationFrame(function() {
callbackInvoked = true;
});
setTimeout(function() {
shouldBeFalse("callbackInvoked");
}, 100);
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
isSuccessfullyParsed();
if (window.testRunner)
testRunner.notifyDone();
}, 200);