Index: third_party/WebKit/LayoutTests/fast/hidpi/device-scale-factor-paint.html |
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/device-scale-factor-paint.html b/third_party/WebKit/LayoutTests/fast/hidpi/device-scale-factor-paint.html |
index 4a7adcada2dbac05c4c0a614db671c7d3d8bd0e6..44408897cc11a5d3c708f910e9ee352bdf6ebaa1 100644 |
--- a/third_party/WebKit/LayoutTests/fast/hidpi/device-scale-factor-paint.html |
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/device-scale-factor-paint.html |
@@ -1,20 +1,12 @@ |
<!DOCTYPE html> |
-<html> |
+<div style='position: absolute; left: 5px; top: 10px; width: 50px; height: 50px; background-color: green'> |
+</div> |
<script> |
- function startTest() { |
- if (window.testRunner) { |
- testRunner.waitUntilDone(); |
- testRunner.setBackingScaleFactor(2, finishTest); |
- } |
- } |
- |
function finishTest() { |
setTimeout(function() { testRunner.notifyDone() }, 0); |
} |
+ if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.setBackingScaleFactor(2, finishTest); |
+ } |
</script> |
-</head> |
-<body onload="startTest();"> |
-<div style='position: absolute; left: 5px; top: 10px; width: 50px; height: 50px; background-color: green'> |
-</div> |
-</body> |
-</html> |