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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/gradient-with-scaled-ancestor.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/gradient-with-scaled-ancestor.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/gradient-with-scaled-ancestor.html b/third_party/WebKit/LayoutTests/fast/hidpi/gradient-with-scaled-ancestor.html
index b7e8bea2d4ae4673a940202db42f9b0fe20e2325..98b67738eaa04b426fc8b349ff0858af5000be5b 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/gradient-with-scaled-ancestor.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/gradient-with-scaled-ancestor.html
@@ -1,22 +1,15 @@
-<html>
- <head>
- <script>
- function startTest() {
- if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.setBackingScaleFactor(2, finishTest);
- }
- }
-
+<!DOCTYPE html>
+<body style="overflow:hidden;">
+ <div style="transform:scale(1.5); -webkit-transform-origin:top left;">
+ <div style="height:300px;width:300px;background-image:-webkit-repeating-linear-gradient(top left, red 10%, blue 30%);border:1px solid">
+ </div>
+ </div>
+ <script>
function finishTest() {
setTimeout(function() { testRunner.notifyDone(); }, 0);
}
- </script>
- </head>
- <body onload="startTest();" style="overflow:hidden;">
- <div style="transform:scale(1.5); -webkit-transform-origin:top left;">
- <div style="height:300px;width:300px;background-image:-webkit-repeating-linear-gradient(top left, red 10%, blue 30%);border:1px solid">
- </div>
- </div>
- </body>
-</html>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.setBackingScaleFactor(2, finishTest);
+ }
+ </script>

Powered by Google App Engine
This is Rietveld 408576698