Chromium Code Reviews

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-src-selection-1x.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.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-src-selection-1x.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-src-selection-1x.html b/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-src-selection-1x.html
index 20710d034c27a31a9535ba0c1314e6eafc0c2726..919b9b259be3097fe585e6500df2925859357873 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-src-selection-1x.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-src-selection-1x.html
@@ -1,5 +1,4 @@
-<html>
-<head>
+<!DOCTYPE html>
<script>
window.targetScaleFactor = 1;
</script>
@@ -9,15 +8,9 @@
if (window.testRunner) {
testRunner.dumpAsText();
}
-
addEventListener("load", function() {
shouldBeTrue('document.getElementById("foo").clientWidth==100');
}, false);
</script>
-</head>
-
-<body id="body">
- <div>This test passes if the div below is a blue 100px square when the deviceScaleFactor is 1. It simply ensures that the src attribute is taken into account by the selection algorithm when this one is processing the images candidates</div>
- <img id="foo" src="resources/blue-100-px-square.png" srcset="resources/green-400-px-square.png 2x">
-</body>
-</html>
+<div>This test passes if the div below is a blue 100px square when the deviceScaleFactor is 1. It simply ensures that the src attribute is taken into account by the selection algorithm when this one is processing the images candidates</div>
+<img id="foo" src="resources/blue-100-px-square.png" srcset="resources/green-400-px-square.png 2x">

Powered by Google App Engine