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