| <script src="../../resources/js-test-pre.js"></script> |
| <iframe src="script-tests/request-animation-frame-subframe.html" width="700" height="500"></iframe> |
| <script type="text/javascript" charset="utf-8"> |
| description("Tests requestAnimationFrame in both an iframe and main frame"); |
| var callbackInvoked = false; |
| var mainFrameCallbackInvoked = false; |
| testRunner.waitUntilDone(); |
| window.requestAnimationFrame(function() { |
| mainFrameCallbackInvoked = true; |
| testRunner.displayAndTrackRepaints(); |
| shouldBeTrue("callbackInvoked"); |
| shouldBeTrue("mainFrameCallbackInvoked"); |