Index: third_party/WebKit/LayoutTests/fast/hidpi/border-background-align.html |
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/border-background-align.html b/third_party/WebKit/LayoutTests/fast/hidpi/border-background-align.html |
index 95c52f7e6cbce63bb6574f2f5539b0bfbdf5b68d..934a78427c95fb49c9617466265aa8adf1404094 100644 |
--- a/third_party/WebKit/LayoutTests/fast/hidpi/border-background-align.html |
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/border-background-align.html |
@@ -1,38 +1,26 @@ |
<!DOCTYPE html> |
-<head> |
<style> |
-.d1 { |
- position: absolute; |
- left: 10.5px; |
- width: 100px; |
- height: 100px; |
- background-color: red; |
- border: 1px solid green; |
-} |
- |
-.d2 { |
- background-color: green; |
- width: 100%; |
- height: 100%; |
-} |
-</style> |
-</head> |
- |
-<body onload="startTest()"> |
- <div class="d1"><div class="d2"></div></div> |
- |
- |
- <script> |
- function startTest() { |
- if (window.testRunner) { |
- testRunner.waitUntilDone(); |
- testRunner.setBackingScaleFactor(2, finishTest); |
- } |
+ .d1 { |
+ position: absolute; |
+ left: 10.5px; |
+ width: 100px; |
+ height: 100px; |
+ background-color: red; |
+ border: 1px solid green; |
+ } |
+ .d2 { |
+ background-color: green; |
+ width: 100%; |
+ height: 100%; |
} |
- |
+</style> |
+<div class="d1"><div class="d2"></div></div> |
+<script> |
function finishTest() { |
setTimeout(function() { testRunner.notifyDone() }, 0); |
} |
- </script> |
-</body> |
- |
+ if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.setBackingScaleFactor(2, finishTest); |
+ } |
+</script> |