OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <style> | 3 <style> |
4 #scrollable { | 4 #scrollable { |
5 height: 200px; | 5 height: 200px; |
6 width: 200px; | 6 width: 200px; |
7 overflow: scroll; | 7 overflow: scroll; |
8 } | 8 } |
9 #scrollable div { | 9 #scrollable div { |
10 height: 1000px; | 10 height: 1000px; |
11 } | 11 } |
12 </style> | 12 </style> |
13 | 13 |
14 <script src="../js/resources/js-test-pre.js"></script> | 14 <script src="../../resources/js-test.js"></script> |
15 | 15 |
16 <div id="scrollable"><div></div></div> | 16 <div id="scrollable"><div></div></div> |
17 | 17 |
18 <script type="text/javascript"> | 18 <script type="text/javascript"> |
19 if (window.testRunner) | 19 if (window.testRunner) |
20 testRunner.setCanOpenWindows(); | 20 testRunner.setCanOpenWindows(); |
21 | 21 |
22 var jsTestIsAsync = true; | 22 var jsTestIsAsync = true; |
23 var scrollable = document.getElementById('scrollable'); | 23 var scrollable = document.getElementById('scrollable'); |
24 | 24 |
25 description('Tests that scroll events are not fired while modal dialogs are disp
layed.'); | 25 description('Tests that scroll events are not fired while modal dialogs are disp
layed.'); |
26 | 26 |
27 scrollable.onscroll = function() { | 27 scrollable.onscroll = function() { |
28 debug('Scroll handler fired'); | 28 debug('Scroll handler fired'); |
29 dialog.close(); | 29 dialog.close(); |
30 } | 30 } |
31 | 31 |
32 onload = function() { | 32 onload = function() { |
33 debug('Showing modal dialog'); | 33 debug('Showing modal dialog'); |
34 showModalDialog('resources/scroll-event-modal-dialog.html'); | 34 showModalDialog('resources/scroll-event-modal-dialog.html'); |
35 debug('Returned from modal dialog'); | 35 debug('Returned from modal dialog'); |
36 finishJSTest(); | 36 finishJSTest(); |
37 } | 37 } |
38 </script> | 38 </script> |
39 | 39 |
OLD | NEW |