| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 window.jsTestIsAsync = true; | 5 window.jsTestIsAsync = true; |
| 6 var givenScrollTop = 1; | 6 var givenScrollTop = 1; |
| 7 var givenScrollLeft = 2; | 7 var givenScrollLeft = 2; // When paging, this is ignored. Every even
t is one page. |
| 8 var expectedScrollTop = 161; | 8 var expectedScrollTop = 161; |
| 9 var expectedScrollLeft = 322; | 9 var expectedScrollLeft = 161; |
| 10 var event; | 10 var event; |
| 11 var div; | 11 var div; |
| 12 | 12 |
| 13 function runTest() | 13 function runTest() |
| 14 { | 14 { |
| 15 var overflowElement = document.getElementById("overflow"); | 15 var overflowElement = document.getElementById("overflow"); |
| 16 if (overflowElement) | 16 if (overflowElement) |
| 17 overflowElement.addEventListener("mousewheel", mousewheelHan
dler, false); | 17 overflowElement.addEventListener("mousewheel", mousewheelHan
dler, false); |
| 18 | 18 |
| 19 if (window.eventSender) { | 19 if (window.eventSender) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 <div style="background-color:green;height:300px;width:300px;positi
on:relative;left:300px;top:-300px"></div> | 51 <div style="background-color:green;height:300px;width:300px;positi
on:relative;left:300px;top:-300px"></div> |
| 52 </div> | 52 </div> |
| 53 <div style="height:300px;width:600px"> | 53 <div style="height:300px;width:600px"> |
| 54 <div style="background-color:blue;height:300px;width:300px;positio
n:relative;left:0px;top:0px"></div> | 54 <div style="background-color:blue;height:300px;width:300px;positio
n:relative;left:0px;top:0px"></div> |
| 55 <div style="background-color:yellow;height:300px;width:300px;posit
ion:relative;left:300px;top:-300px"></div> | 55 <div style="background-color:yellow;height:300px;width:300px;posit
ion:relative;left:300px;top:-300px"></div> |
| 56 </div> | 56 </div> |
| 57 </div> | 57 </div> |
| 58 <div id="console"></div> | 58 <div id="console"></div> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |