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