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 scaleFactor = 2.0; | 17 var scaleFactor = 2.0; |
18 var scaleOffset = 0; | 18 var scaleOffset = 0; |
19 if (window.eventSender) { | 19 if (window.eventSender) { |
20 eventSender.scalePageBy(scaleFactor, scaleOffset, scaleOffset); | 20 eventSender.setInitialPageScaleOverride(-1); |
| 21 eventSender.setPageScaleFactor(scaleFactor, scaleOffset, scaleOffset
); |
21 } | 22 } |
22 } | 23 } |
23 | 24 |
24 function test() { | 25 function test() { |
25 scaleWithEventSender(); | 26 scaleWithEventSender(); |
26 scroll(); | 27 scroll(); |
27 } | 28 } |
28 </script> | 29 </script> |
29 <script src="../js/resources/js-test-pre.js"></script> | 30 <script src="../js/resources/js-test-pre.js"></script> |
30 </head> | 31 </head> |
(...skipping 14 matching lines...) Expand all Loading... |
45 <div style="float:left; width:100px; height:100px; background:blue;"></d
iv> | 46 <div style="float:left; width:100px; height:100px; background:blue;"></d
iv> |
46 <div style="float:left; width:100px; height:100px; background:yellow;"><
/div> | 47 <div style="float:left; width:100px; height:100px; background:yellow;"><
/div> |
47 | 48 |
48 <div style="float:left; width:100px; height:100px; background:blue;"></d
iv> | 49 <div style="float:left; width:100px; height:100px; background:blue;"></d
iv> |
49 <div style="float:left; width:100px; height:100px; background:yellow;"><
/div> | 50 <div style="float:left; width:100px; height:100px; background:yellow;"><
/div> |
50 <div style="float:left; width:100px; height:100px; background:green;"></
div> | 51 <div style="float:left; width:100px; height:100px; background:green;"></
div> |
51 </div> | 52 </div> |
52 <div id="console"></div> | 53 <div id="console"></div> |
53 </body> | 54 </body> |
54 </html> | 55 </html> |
OLD | NEW |