Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: LayoutTests/fast/repaint/fixed-in-page-scale.html

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use setPageScaleFactorLimits(). Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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.setPageScaleFactor(scaleFactor, scaleOffset, scaleOffset );
21 }
22 } 21 }
23 22
24 function test() { 23 function test() {
25 scaleWithEventSender(); 24 scaleWithEventSender();
26 scroll(); 25 scroll();
27 } 26 }
28 </script> 27 </script>
29 <script src="../js/resources/js-test-pre.js"></script> 28 <script src="../js/resources/js-test-pre.js"></script>
30 </head> 29 </head>
31 <body style="width:2000px; height:2000px; margin:0px;" onload="test();"> 30 <body style="width:2000px; height:2000px; margin:0px;" onload="test();">
(...skipping 11 matching lines...) Expand all
43 42
44 <div style="left:0; top:100px; width:100px; height:100px; position:absolute; background: green;"></div> 43 <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> 44 <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> 45 <div style="left:200px; top:100px; width:100px; height:100px; position:absol ute; background:yellow;"></div>
47 46
48 <div style="left:0; top:200px; width:100px; height:100px; position:absolute; background:blue;"></div> 47 <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> 48 <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> 49 <div style="left:200px; top:200px; width:100px; height:100px; position:absol ute; background:green;"></div>
51 </body> 50 </body>
52 </html> 51 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/background-scaling.html ('k') | LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698