| <script src="../resources/js-test-pre.js"></script> |
| function doAnimation1(timestamp) |
| if (++currentFrame > MaxFrames) { |
| requestAnimationFrame(doAnimation1); |
| requestAnimationFrame(doAnimation2); |
| function doAnimation2(timestamp) |
| shouldBe("Math.round(timestamp1)", "Math.round(timestamp2)"); |
| window.jsTestIsAsync = true; |
| description("Test the timestamps of all the rAF callbacks are the same."); |
| requestAnimationFrame(doAnimation1); |
| requestAnimationFrame(doAnimation2); |
| <script src="../resources/js-test-post.js"></script> |