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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-change-dynamically-src-first-2x.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-change-dynamically-src-first-2x.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-change-dynamically-src-first-2x.html b/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-change-dynamically-src-first-2x.html
index 7365f2a9f863c91213fceb4bffd40553eada898a..0aca9eec03712e58057f99ab2165281aea87b48b 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-change-dynamically-src-first-2x.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/image-srcset-change-dynamically-src-first-2x.html
@@ -1,7 +1,4 @@
-<html>
-<head>
-<script>
-</script>
+<!DOCTYPE html>
<script src="resources/srcset-helper.js"></script>
<script src="../../resources/js-test.js"></script>
<script>
@@ -11,7 +8,6 @@
img.src = "resources/blue-100-px-square.png"
img.srcset = "resources/blue-100-px-square.png 1x, resources/green-400-px-square.png 2x";
}
-
addEventListener("DOMContentLoaded", function() {
if (window.testRunner && sessionStorage.pageReloaded) {
// Have to make sure to only load the src after the reload.
@@ -28,11 +24,6 @@
shouldBeTrue('document.getElementById("foo").clientWidth==200');
}, false);
</script>
-</head>
-
-<body id="body">
- <div>This test passes if this img tag below is a green square when the scale factor is 2.
- It ensures that attributes can be changed dynamically from javascript, and that only the correct resource is loaded.</div>
- <img id="foo">
-</body>
-</html>
+<div>This test passes if this img tag below is a green square when the scale factor is 2.
+ It ensures that attributes can be changed dynamically from javascript, and that only the correct resource is loaded.</div>
+<img id="foo">

Powered by Google App Engine
This is Rietveld 408576698