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

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

Issue 1908463002: Modernize fast/hidpi layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add NeedsManualRebaseline Created 4 years, 8 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 c16252483a47505b30a4e0298559ee5b539125ff..2df8999a910d5d38b361e58c384aeefc7fe09a72 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
@@ -1,6 +1,4 @@
<!DOCTYPE html>
-<html>
-<head>
<script>
window.targetScaleFactor = 2;
</script>
@@ -9,17 +7,11 @@
<script>
var imgWidth;
addEventListener("load", function() {
- // FIXME: clientWidth might be zero because of crbug.com/379155
imgWidth = document.getElementById("foo").clientWidth;
shouldBe('imgWidth', '33554431' /* blink::intMaxForLayoutUnit */);
}, false);
</script>
-</head>
-
-<body id="body">
- <div>
- This test passes if the image is displayed with infinite dimensions.
- </div>
- <img id="foo" srcset="resources/blue-100-px-square.png 0x">
-</body>
-</html>
+<div>
+ This test passes if the image is displayed with infinite dimensions.
+</div>
+<img id="foo" srcset="resources/blue-100-px-square.png 0x">

Powered by Google App Engine
This is Rietveld 408576698