| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Events/#events-WheelEven
t"> | 4 <link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Events/#events-WheelEven
t"> |
| 5 <script src="../../resources/js-test.js"></script> | 5 <script src="../../../resources/js-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 function runTest() { | 7 function runTest() { |
| 8 var div = document.getElementById('target'); | 8 var div = document.getElementById('target'); |
| 9 div.addEventListener('wheel', wheelHandler); | 9 div.addEventListener('wheel', wheelHandler); |
| 10 div.addEventListener('mousewheel', mouseWheelHandler); | 10 div.addEventListener('mousewheel', mouseWheelHandler); |
| 11 if (window.eventSender) { | 11 if (window.eventSender) { |
| 12 eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5); | 12 eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5); |
| 13 eventSender.mouseScrollBy(10, 20); | 13 eventSender.mouseScrollBy(10, 20); |
| 14 finishJSTest(); | 14 finishJSTest(); |
| 15 } else { | 15 } else { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 45 </div> | 45 </div> |
| 46 </span> | 46 </span> |
| 47 <script> | 47 <script> |
| 48 description("Tests the interaction between the standard 'wheel' event and the no
n-standard 'mousewheel' one"); | 48 description("Tests the interaction between the standard 'wheel' event and the no
n-standard 'mousewheel' one"); |
| 49 window.jsTestIsAsync = true; | 49 window.jsTestIsAsync = true; |
| 50 | 50 |
| 51 runTest(); | 51 runTest(); |
| 52 </script> | 52 </script> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |