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

Side by Side Diff: LayoutTests/fast/images/zoomed-img-height-acid3.html

Issue 251063002: Use plus/minus 0.5 instead of 1 when calculating zoomed length. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/images/zoomed-img-height-acid3-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style type="text/css">
5 img { height: 10px; }
6 </style>
7 <script type="text/javascript">
8 if (window.testRunner)
9 testRunner.dumpAsText();
10
11 function test() {
12 // The factors are the same as those in Chrome settings.
13 var zoomFactors = [1, 1.1, 1.25, 1.5, 1.75, 2, 2.5, 3, 4, 5];
14 if (!window.eventSender)
15 return;
16
17 for (i = 0; i < zoomFactors.length; ++i) {
18 var output = document.getElementById('output');
19 eventSender.setPageZoomFactor(zoomFactors[i]);
20 if (document.images[0].height == 10)
21 output.innerHTML += "PASS: zoom " + Math.round(zoomFactors[i] * 100) + "%<br>";
22 else
23 output.innerHTML += "FAIL: zoom " + Math.round(zoomFactors[i] * 100) + "%, height " + document.images[0].height + " != 10<br>";
24 }
25 }
26 window.onload = test;
27 </script>
28 </head>
29 <body>
30 This test is minimized from Acid3 Test #72.<br>
31 <img src="data:image/gif;base64,R0lGODlhAQABAID%2FAMDAwAAAACH5BAEAAAAALAAAAA ABAAEAAAICRAEA1w%3D%3D" alt="">
32 <div id="output"></div>
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/images/zoomed-img-height-acid3-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698