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"> |