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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.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/clip-text-in-hidpi.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html b/third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html
index df76785b0dbe98f90f463a06a95225ceb111a176..5c7ebc89af7894dbe94b293ef071e8361b89bbea 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/clip-text-in-hidpi.html
@@ -1,22 +1,14 @@
-<html>
-<head>
+<!DOCTYPE html>
+<span style="background-color:red; -webkit-background-clip:text; -webkit-text-fill-color:transparent">This text should be nice and sharp. devicePixelRatio is: </span>
+<span id="test"></span>
<script>
- function startTest() {
- if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.setBackingScaleFactor(2, finishTest);
- }
- }
-
function finishTest() {
var test = document.getElementById("test");
test.innerHTML = window.devicePixelRatio;
setTimeout(function() { testRunner.notifyDone(); }, 0);
}
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.setBackingScaleFactor(2, finishTest);
+ }
</script>
-</head>
-<body onload="startTest();">
- <span style="background-color:red; -webkit-background-clip:text; -webkit-text-fill-color:transparent">This text should be nice and sharp. devicePixelRatio is: </span>
- <span id="test"></span>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698