OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <script src="../../resources/js-test.js"></script> | |
4 <body> | |
5 | |
6 <script type="text/javascript"> | |
7 if (window.testRunner) | |
8 testRunner.setCanOpenWindows(); | |
9 | |
10 description('Tests that requestAnimationFrame callbacks are not invoked while mo
dal dialogs are displayed.'); | |
11 | |
12 onload = function() | |
13 { | |
14 debug('Setting callback'); | |
15 window.requestAnimationFrame(function() { debug('Callback fired'); }, docume
nt.body); | |
16 debug('Showing modal dialog'); | |
17 var src = 'if (window.testRunner) {' + | |
18 ' testRunner.display();' + | |
19 ' window.close();' + | |
20 '} else {'+ | |
21 ' window.setTimeout(window.close, 10);'+ | |
22 '}'; | |
23 showModalDialog('data:text/html,<script>' + src + '</' + 'script>'); | |
24 debug('Returned from modal dialog'); | |
25 if (window.testRunner) {; | |
26 testRunner.display(); | |
27 } | |
28 | |
29 window.requestAnimationFrame(function() { | |
30 isSuccessfullyParsed(); | |
31 if (window.testRunner) | |
32 testRunner.notifyDone(); | |
33 }); | |
34 } | |
35 | |
36 if (window.testRunner) | |
37 testRunner.waitUntilDone(); | |
38 | |
39 </script> | |
40 </body> | |
41 </html> | |
42 | |
OLD | NEW |