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

Side by Side Diff: LayoutTests/fast/repaint/scale-page-shrink.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 <script src="resources/repaint.js" type="text/javascript" charset="utf-8"></scri pt> 3 <script src="resources/repaint.js" type="text/javascript" charset="utf-8"></scri pt>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function repaintTest() 5 function repaintTest()
6 { 6 {
7 if (window.internals) 7 if (window.eventSender)
8 window.internals.setPageScaleFactor(0.25, 0, 0); 8 window.eventSender.setPageScaleFactor(0.25, 0, 0);
9 } 9 }
10 </script> 10 </script>
11 </head> 11 </head>
12 12
13 <body onload="runRepaintTest();"> 13 <body onload="runRepaintTest();">
14 This test must be run in DumpRenderTree as a pixel test. There should not be visual aritfacts after scaling the page. 14 This test must be run in DumpRenderTree as a pixel test. There should not be visual aritfacts after scaling the page.
15 <div style="width:500px; height:500px; background-color:green;"></div> 15 <div style="width:500px; height:500px; background-color:green;"></div>
16 </body> 16 </body>
17 </html> 17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698