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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/broken-image-icon-hidpi.html

Issue 1908463002: Modernize fast/hidpi layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/broken-image-icon-hidpi.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/broken-image-icon-hidpi.html b/third_party/WebKit/LayoutTests/fast/hidpi/broken-image-icon-hidpi.html
index 923b69ae6b6bbbcffbdd3f4995b17408a4ddd84d..8bdbbe8ebf52861624749612199ddcb91fa7e697 100644
--- a/third_party/WebKit/LayoutTests/fast/hidpi/broken-image-icon-hidpi.html
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/broken-image-icon-hidpi.html
@@ -1,19 +1,12 @@
-<html>
- <script>
- function startTest() {
- if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.setBackingScaleFactor(2, finishTest);
- }
- }
-
- function finishTest() {
- setTimeout(function() { testRunner.notifyDone(); }, 0);
- }
- </script>
- </head>
- <body onload="startTest();">
- <div>This test passes if the broken image icon appears high-resolution in HiDPI and if the outline is of the appropriate size.</div>
- <img src="not-there.png"></img>
- </body>
-</html>
+<!DOCTYPE html>
+<div>This test passes if the broken image icon appears high-resolution in HiDPI and if the outline is of the appropriate size.</div>
+<img src="not-there.png"></img>
Yoav Weiss 2016/04/20 13:36:13 You can drop the "</img>"
davve 2016/04/21 08:58:01 Done.
+<script>
+ function finishTest() {
+ setTimeout(function() { testRunner.notifyDone(); }, 0);
+ }
+ if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.setBackingScaleFactor(2, finishTest);
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698