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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/device-scale-factor-paint.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <div style='position: absolute; left: 5px; top: 10px; width: 50px; height: 50px; background-color: green'>
3 </div>
3 <script> 4 <script>
4 function startTest() {
5 if (window.testRunner) {
6 testRunner.waitUntilDone();
7 testRunner.setBackingScaleFactor(2, finishTest);
8 }
9 }
10
11 function finishTest() { 5 function finishTest() {
12 setTimeout(function() { testRunner.notifyDone() }, 0); 6 setTimeout(function() { testRunner.notifyDone() }, 0);
13 } 7 }
8 if (window.testRunner) {
9 testRunner.waitUntilDone();
10 testRunner.setBackingScaleFactor(2, finishTest);
11 }
14 </script> 12 </script>
15 </head>
16 <body onload="startTest();">
17 <div style='position: absolute; left: 5px; top: 10px; width: 50px; height: 50px; background-color: green'>
18 </div>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698