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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/focus-rings.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/focus-rings.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/focus-rings.html b/third_party/WebKit/LayoutTests/fast/hidpi/focus-rings.html
index 26a2f0cd495cf7f4eb3a9ef417f55dd1781ea77a..7135ed1602d19a72088b747302ec5d8d61c482ca 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/focus-rings.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/focus-rings.html
@@ -1,20 +1,13 @@
-<html>
+<!DOCTYPE html>
+<div id="div" style="width:300px; height:150px; border:1px solid black;" tabindex=1></div>
<script>
- function startTest() {
- if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.setBackingScaleFactor(2, finishTest);
- }
- }
-
function finishTest() {
var div = document.getElementById("div");
div.focus();
setTimeout(function() { testRunner.notifyDone(); }, 0);
}
- </script>
-</head>
-<body onload="startTest();">
- <div id="div" style="width:300px; height:150px; border:1px solid black;" tabindex=1></div>
-</body>
-</html>
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.setBackingScaleFactor(2, finishTest);
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698