| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 window.jsTestIsAsync = true; | 6 window.jsTestIsAsync = true; |
| 7 | 7 |
| 8 function test() { | 8 function test() { |
| 9 var div = document.querySelector('div'); | 9 var div = document.querySelector('div'); |
| 10 if (window.eventSender) { | 10 if (window.eventSender) { |
| 11 eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5); | 11 eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5); |
| 12 eventSender.mouseScrollBy(0,120); | 12 eventSender.mouseScrollBy(0,120); |
| 13 } else { | 13 } else { |
| 14 debug("FAIL: This test requires window.eventSender."); | 14 debug("FAIL: This test requires window.eventSender."); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 29 div.addEventListener('mousewheel', wheelHandler); | 29 div.addEventListener('mousewheel', wheelHandler); |
| 30 test(); | 30 test(); |
| 31 }; | 31 }; |
| 32 </script> | 32 </script> |
| 33 </head> | 33 </head> |
| 34 <body> | 34 <body> |
| 35 <div>This is a div containing text. Wheel events originating on the text | 35 <div>This is a div containing text. Wheel events originating on the text |
| 36 node should target the div.</div> | 36 node should target the div.</div> |
| 37 </body> | 37 </body> |
| 38 </html> | 38 </html> |
| OLD | NEW |