| <script src="../../resources/js-test-pre.js"></script> |
| <script type="text/javascript"> |
| description('Tests that requestAnimationFrame callbacks are not invoked while modal dialogs are displayed.'); |
| debug('Setting callback'); |
| window.requestAnimationFrame(function() { debug('Callback fired'); }, document.body); |
| debug('Showing modal dialog'); |
| var src = 'if (window.testRunner) {' + |
| ' testRunner.displayAndTrackRepaints();' + |
| ' window.setTimeout(window.close, 10);'+ |
| showModalDialog('data:text/html,<script>' + src + '</' + 'script>'); |
| debug('Returned from modal dialog'); |
| if (window.testRunner) {; |
| testRunner.displayAndTrackRepaints(); |
| testRunner.waitUntilDone(); |