2 <script src="../js/resources/js-test-pre.js"></script>
3 <body style="min-height: 2000px">
5 <script type="text/javascript">
6 if (window.layoutTestController)
7 layoutTestController.setCanOpenWindows();
9 description('Tests that scroll events are not fired while modal dialogs are displayed.');
11 var triggeredCaptureListener = false;
12 var triggeredBubbleListener = false;
16 debug('Scroll handler fired');
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');
28 var jsTestIsAsync = true;
30 <script src="../js/resources/js-test-post.js"></script>