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

Side by Side Diff: LayoutTests/compositing/tiling/tile-cache-zoomed.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 body { 6 body {
7 width: 1200px; 7 width: 1200px;
8 height: 2000px; 8 height: 2000px;
9 overflow: hidden; 9 overflow: hidden;
10 } 10 }
11 11
12 .box { 12 .box {
13 height: 2500px; 13 height: 2500px;
14 width: 700px; 14 width: 700px;
15 -webkit-transform: translateZ(1px); 15 -webkit-transform: translateZ(1px);
16 background-color: silver; 16 background-color: silver;
17 } 17 }
18 </style> 18 </style>
19 <script> 19 <script>
20 if (window.testRunner) 20 if (window.testRunner)
21 testRunner.dumpAsText(); 21 testRunner.dumpAsText();
22 22
23 function doTest() 23 function doTest()
24 { 24 {
25 if (window.eventSender) 25 if (window.eventSender)
26 eventSender.scalePageBy(1.6, 1.6); 26 eventSender.setPageScaleFactor(1.6, 1.6);
27 27
28 if (window.internals) { 28 if (window.internals) {
29 document.getElementById('layers').innerText = internals.layerTre eAsText(document); 29 document.getElementById('layers').innerText = internals.layerTre eAsText(document);
30 } 30 }
31 } 31 }
32 32
33 window.addEventListener('load', doTest, false); 33 window.addEventListener('load', doTest, false);
34 </script> 34 </script>
35 </head> 35 </head>
36 <body> 36 <body>
37 <div class="box"> 37 <div class="box">
38 38
39 </div> 39 </div>
40 <pre id="layers">Layer tree goes here</p> 40 <pre id="layers">Layer tree goes here</p>
41 </body> 41 </body>
42 </html> 42 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/scaling/tiled-layer-recursion.html ('k') | LayoutTests/fast/css/sticky/sticky-top-zoomed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698