OLD | NEW |
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> | |
OLD | NEW |