[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.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.layoutTestController)
7     layoutTestController.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>