OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 ::-webkit-scrollbar { | 4 ::-webkit-scrollbar { |
5 width: 0px; | 5 width: 0px; |
6 height: 0px; | 6 height: 0px; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script> | 9 <script> |
10 window.enablePixelTesting = true; | 10 window.enablePixelTesting = true; |
11 | 11 |
12 function scroll() { | 12 function scroll() { |
13 window.scrollTo(100,100); | 13 window.scrollTo(100,100); |
14 } | 14 } |
15 | 15 |
16 function scaleWithEventSender() { | 16 function scaleWithEventSender() { |
| 17 var initialPageScaleFactor = 1.0; |
17 var scaleFactor = 2.0; | 18 var scaleFactor = 2.0; |
18 var scaleOffset = 0; | 19 var scaleOffset = 0; |
19 if (window.eventSender) { | 20 if (window.eventSender) { |
| 21 eventSender.setInitialPageScaleOverride(initialPageScaleFactor); |
20 eventSender.scalePageBy(scaleFactor, scaleOffset, scaleOffset); | 22 eventSender.scalePageBy(scaleFactor, scaleOffset, scaleOffset); |
21 } | 23 } |
22 } | 24 } |
23 | 25 |
24 function test() { | 26 function test() { |
25 scaleWithEventSender(); | 27 scaleWithEventSender(); |
26 scroll(); | 28 scroll(); |
27 } | 29 } |
28 </script> | 30 </script> |
29 <script src="../js/resources/js-test-pre.js"></script> | 31 <script src="../js/resources/js-test-pre.js"></script> |
(...skipping 13 matching lines...) Expand all Loading... |
43 | 45 |
44 <div style="left:0; top:100px; width:100px; height:100px; position:absolute;
background: green;"></div> | 46 <div style="left:0; top:100px; width:100px; height:100px; position:absolute;
background: green;"></div> |
45 <div style="left:100px; top:100px; width:100px; height:100px; position:absol
ute; background:blue;"></div> | 47 <div style="left:100px; top:100px; width:100px; height:100px; position:absol
ute; background:blue;"></div> |
46 <div style="left:200px; top:100px; width:100px; height:100px; position:absol
ute; background:yellow;"></div> | 48 <div style="left:200px; top:100px; width:100px; height:100px; position:absol
ute; background:yellow;"></div> |
47 | 49 |
48 <div style="left:0; top:200px; width:100px; height:100px; position:absolute;
background:blue;"></div> | 50 <div style="left:0; top:200px; width:100px; height:100px; position:absolute;
background:blue;"></div> |
49 <div style="left:100px; top:200px; width:100px; height:100px; position:absol
ute; background:yellow;"></div> | 51 <div style="left:100px; top:200px; width:100px; height:100px; position:absol
ute; background:yellow;"></div> |
50 <div style="left:200px; top:200px; width:100px; height:100px; position:absol
ute; background:green;"></div> | 52 <div style="left:200px; top:200px; width:100px; height:100px; position:absol
ute; background:green;"></div> |
51 </body> | 53 </body> |
52 </html> | 54 </html> |
OLD | NEW |