3 <script src="../../resources/js-test.js"></script>
6 <script type="text/javascript">
8 testRunner.setCanOpenWindows();
10 description('Tests that requestAnimationFrame callbacks are not invoked while modal dialogs are displayed.');
14 debug('Setting callback');
15 window.requestAnimationFrame(function() { debug('Callback fired'); }, document.body);
16 debug('Showing modal dialog');
17 var src = 'window.setTimeout(window.close, 100);';
18 showModalDialog('data:text/html,<script>' + src + '</' + 'script>');
19 debug('Returned from modal dialog');
21 window.requestAnimationFrame(function() {
22 isSuccessfullyParsed();
23 if (window.testRunner)
24 testRunner.notifyDone();
28 if (window.testRunner)
29 testRunner.waitUntilDone();