| <script src="../../resources/js-test-pre.js"></script> |
| description("Tests adding one callback within another"); |
| var e = document.getElementById("e"); |
| window.requestAnimationFrame(function() { |
| window.requestAnimationFrame(function() { |
| window.requestAnimationFrame(function() { |
| shouldBeFalse("sameFrame"); |
| window.requestAnimationFrame(function() { |
| // This should fire the three already registered callbacks, but not the one dynamically registered. |
| testRunner.displayAndTrackRepaints(); |
| // This should fire the dynamically registered callback. |
| testRunner.displayAndTrackRepaints(); |
| testRunner.waitUntilDone(); |