blob: 943cf6fcab3219b7a2f34aca4170a774e5c0432f [file]
description("Tests adding one callback within another");
var e = document.getElementById("e");
var sameFrame;
window.webkitRequestAnimationFrame(function() {
sameFrame = true;
}, e);
window.webkitRequestAnimationFrame(function() {
window.webkitRequestAnimationFrame(function() {
shouldBeFalse("sameFrame");
}, e);
}, e);
window.webkitRequestAnimationFrame(function() {
sameFrame = false;
}, e);
// This should fire the three already registered callbacks, but not the one dynamically registered.
if (window.testRunner)
testRunner.display();
// This should fire the dynamically registered callback.
if (window.testRunner)
testRunner.display();
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
isSuccessfullyParsed();
if (window.testRunner)
testRunner.notifyDone();
}, 200);