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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/broken-image-with-size-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, 7 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 is the appropriate size.</div>
3 function startTest() { 3 <img src="not-there.png" width=300 height=150>
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 is the appropriate size.</div>
17 <img src="not-there.png" width=300 height=150></img>
18 </body>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698