Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / events / scroll-event-during-modal-dialog.html
1 <html>
2 <script src="../js/resources/js-test-pre.js"></script>
3 <body style="min-height: 2000px"> 
4
5 <script type="text/javascript">
6 if (window.testRunner)
7     testRunner.setCanOpenWindows();
8
9 description('Tests that scroll events are not fired while modal dialogs are displayed.');
10
11 var triggeredCaptureListener = false;
12 var triggeredBubbleListener = false;
13
14 onscroll = function()
15 {
16     debug('Scroll handler fired');
17     finishJSTest();
18 }
19
20 onload = function()
21 {
22     debug('Scrolling window');
23     window.scrollTo(200, 200);
24     debug('Showing modal dialog');
25     showModalDialog('resources/scroll-event-modal-dialog.html');
26     debug('Returned from modal dialog');
27 }
28 var jsTestIsAsync = true;
29 </script>
30 <script src="../js/resources/js-test-post.js"></script>
31 </body>
32 </html>