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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/border-background-align-expected.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/border-background-align-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/border-background-align-expected.html b/third_party/WebKit/LayoutTests/fast/hidpi/border-background-align-expected.html
index 8360904fefbdddad7090e862e04e052adc808b1c..8aa2874247ed3ad12a374c68281a573c12d0b19a 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/border-background-align-expected.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/border-background-align-expected.html
@@ -1,37 +1,25 @@
<!DOCTYPE html>
-<head>
<style>
-.d1 {
- position: absolute;
- left: 10.5px;
- width: 100px;
- height: 100px;
- 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;
+ 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>

Powered by Google App Engine
This is Rietveld 408576698