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

Side by Side Diff: LayoutTests/svg/as-background-image/tiled-background-image.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 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 #div1 { 5 #div1 {
6 width: 64px; 6 width: 64px;
7 height: 32px; 7 height: 32px;
8 background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/ svg" width="128" height="128"><circle fill="#3364c2" cx="64" cy="64" r="64" /></ svg>'); 8 background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/ svg" width="128" height="128"><circle fill="#3364c2" cx="64" cy="64" r="64" /></ svg>');
9 background-size: 32px 32px; 9 background-size: 32px 32px;
10 background-repeat: repeat; 10 background-repeat: repeat;
(...skipping 18 matching lines...) Expand all
29 background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/ svg"><circle fill="#44c400" cx="16" cy="16" r="16" /></svg>'); 29 background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/ svg"><circle fill="#44c400" cx="16" cy="16" r="16" /></svg>');
30 background-size: 50% 100%; 30 background-size: 50% 100%;
31 background-repeat: repeat; 31 background-repeat: repeat;
32 } 32 }
33 p { 33 p {
34 font-size: x-small; 34 font-size: x-small;
35 } 35 }
36 </style> 36 </style>
37 <script> 37 <script>
38 function setScale() { 38 function setScale() {
39 if (window.internals) 39 if (window.eventSender)
40 window.internals.setPageScaleFactor(2, 0, 0); 40 window.eventSender.setPageScaleFactor(2, 0, 0);
41 } 41 }
42 </script> 42 </script>
43 </head> 43 </head>
44 <body onload="setScale()"> 44 <body onload="setScale()">
45 <div id="div1"></div> 45 <div id="div1"></div>
46 <div id="div2"></div> 46 <div id="div2"></div>
47 <div id="div3"></div> 47 <div id="div3"></div>
48 <div id="div4"></div> 48 <div id="div4"></div>
49 <p>Test for WK110047: This test passes if there are 4 rows of 2 circles and they all have sharp edges.</p> 49 <p>Test for WK110047: This test passes if there are 4 rows of 2 circles and they all have sharp edges.</p>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698