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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/hidpi/focus-rings.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 <div id="div" style="width:300px; height:150px; border:1px solid black;" tabinde x=1></div>
2 <script> 3 <script>
3 function startTest() {
4 if (window.testRunner) {
5 testRunner.waitUntilDone();
6 testRunner.setBackingScaleFactor(2, finishTest);
7 }
8 }
9
10 function finishTest() { 4 function finishTest() {
11 var div = document.getElementById("div"); 5 var div = document.getElementById("div");
12 div.focus(); 6 div.focus();
13 setTimeout(function() { testRunner.notifyDone(); }, 0); 7 setTimeout(function() { testRunner.notifyDone(); }, 0);
14 } 8 }
15 </script> 9 if (window.testRunner) {
16 </head> 10 testRunner.waitUntilDone();
17 <body onload="startTest();"> 11 testRunner.setBackingScaleFactor(2, finishTest);
18 <div id="div" style="width:300px; height:150px; border:1px solid black;" tab index=1></div> 12 }
19 </body> 13 </script>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698