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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/device-scale-factor-paint.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/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>

Powered by Google App Engine
This is Rietveld 408576698