OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script> | 4 <script> |
5 var givenScrollTop = 2; // Only one page per event, so this should b
e interpreted as 1 | 5 var givenScrollTop = 2; // Only one page per event, so this should b
e interpreted as 1 |
6 var givenScrollLeft = 2; | 6 var givenScrollLeft = 2; |
7 var expectedScrollTop = 511; // Window is 800x600. 15 pixel scrollba
rs. Scroll 87.5% of visible. | 7 var expectedScrollTop = 511; // Window is 800x600. 15 pixel scrollba
rs. Scroll 87.5% of visible. |
8 var expectedScrollLeft = 686; | 8 var expectedScrollLeft = 686; |
9 var event; | 9 var event; |
10 var div; | 10 var div; |
11 | 11 |
12 window.jsTestIsAsync = true; | 12 window.jsTestIsAsync = true; |
13 if (window.testRunner) | 13 if (window.testRunner) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 <div style="background-color:red;height:900px;width:1200px;position:re
lative;left:0px;top:0px"></div> | 51 <div style="background-color:red;height:900px;width:1200px;position:re
lative;left:0px;top:0px"></div> |
52 <div style="background-color:green;height:900px;width:1200px;position:
relative;left:1200px;top:-900px"></div> | 52 <div style="background-color:green;height:900px;width:1200px;position:
relative;left:1200px;top:-900px"></div> |
53 </div> | 53 </div> |
54 <div style="height:900px;width:2400px"> | 54 <div style="height:900px;width:2400px"> |
55 <div style="background-color:blue;height:900px;width:1200px;position:r
elative;left:0px;top:0px"></div> | 55 <div style="background-color:blue;height:900px;width:1200px;position:r
elative;left:0px;top:0px"></div> |
56 <div style="background-color:yellow;height:900px;width:1200px;position
:relative;left:1200px;top:-900px"></div> | 56 <div style="background-color:yellow;height:900px;width:1200px;position
:relative;left:1200px;top:-900px"></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 |