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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <html> 1 <!DOCTYPE html>
2 <script> 2 <div>This test passes if the broken image icon appears high-resolution in HiDPI and if the outline is of the appropriate size.</div>
3 function startTest() { 3 <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.
4 if (window.testRunner) { 4 <script>
5 testRunner.waitUntilDone(); 5 function finishTest() {
6 testRunner.setBackingScaleFactor(2, finishTest); 6 setTimeout(function() { testRunner.notifyDone(); }, 0);
7 } 7 }
8 } 8 if (window.testRunner) {
9 9 testRunner.waitUntilDone();
10 function finishTest() { 10 testRunner.setBackingScaleFactor(2, finishTest);
11 setTimeout(function() { testRunner.notifyDone(); }, 0); 11 }
12 } 12 </script>
13 </script>
14 </head>
15 <body onload="startTest();">
16 <div>This test passes if the broken image icon appears high-resolution i n HiDPI and if the outline is of the appropriate size.</div>
17 <img src="not-there.png"></img>
18 </body>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698