3 <script src="../js/resources/js-test-pre.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 = 'if (window.testRunner) {' +
18 ' testRunner.display();' +
21 ' window.setTimeout(window.close, 10);'+
23 showModalDialog('data:text/html,<script>' + src + '</' + 'script>');
24 debug('Returned from modal dialog');
25 if (window.testRunner) {;
29 window.requestAnimationFrame(function() {
30 isSuccessfullyParsed();
31 if (window.testRunner)
32 testRunner.notifyDone();
36 if (window.testRunner)
37 testRunner.waitUntilDone();