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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html

Issue 2085153002: Adjust test expectations for infinite-size images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small refactor Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html b/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html
index 2df8999a910d5d38b361e58c384aeefc7fe09a72..8bcc9bb31184230bd84772aa0cd6049213333bc4 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-intrinsic-size-zero.html
@@ -8,7 +8,10 @@
var imgWidth;
addEventListener("load", function() {
imgWidth = document.getElementById("foo").clientWidth;
- shouldBe('imgWidth', '33554431' /* blink::intMaxForLayoutUnit */);
+ var expected = 33554431; // blink::intMaxForLayoutUnit
+ if (sessionStorage.useZoomForDsfEnabled === 'true')
+ expected = Math.round(expected / window.devicePixelRatio);
+ shouldBe('imgWidth', '' + expected);
}, false);
</script>
<div>

Powered by Google App Engine
This is Rietveld 408576698