Index: third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html |
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html b/third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html |
index df76785b0dbe98f90f463a06a95225ceb111a176..5c7ebc89af7894dbe94b293ef071e8361b89bbea 100644 |
--- a/third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html |
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html |
@@ -1,22 +1,14 @@ |
-<html> |
-<head> |
+<!DOCTYPE html> |
+<span style="background-color:red; -webkit-background-clip:text; -webkit-text-fill-color:transparent">This text should be nice and sharp. devicePixelRatio is: </span> |
+<span id="test"></span> |
<script> |
- function startTest() { |
- if (window.testRunner) { |
- testRunner.waitUntilDone(); |
- testRunner.setBackingScaleFactor(2, finishTest); |
- } |
- } |
- |
function finishTest() { |
var test = document.getElementById("test"); |
test.innerHTML = window.devicePixelRatio; |
setTimeout(function() { testRunner.notifyDone(); }, 0); |
} |
+ if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.setBackingScaleFactor(2, finishTest); |
+ } |
</script> |
-</head> |
-<body onload="startTest();"> |
- <span style="background-color:red; -webkit-background-clip:text; -webkit-text-fill-color:transparent">This text should be nice and sharp. devicePixelRatio is: </span> |
- <span id="test"></span> |
-</body> |
-</html> |