Chromium Code Reviews| 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 = 2; | 6 var givenScrollTop = 2; // When paging, this is ignored. Every event is one page. |
|
tdresser
2016/03/10 13:53:07
The comment below is still relevant - justifying t
bokan
2016/03/10 13:54:12
Acknowledged.
| |
| 7 var givenScrollLeft = 0; | 7 var givenScrollLeft = 0; |
| 8 var expectedScrollTop = 322; // 2 pages, 161 * 2, see comment in HTM L below. | 8 var expectedScrollTop = 161; |
| 9 var expectedScrollLeft = 0; | 9 var expectedScrollLeft = 0; |
| 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 |
| (...skipping 32 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 |