OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
9 window.onload = function() { | 9 window.onload = function() { |
10 if (!window.testRunner) | 10 if (!window.testRunner) |
11 return; | 11 return; |
12 // Force a pixel dump to cover raterization issues if any. | 12 // Force a pixel dump to cover raterization issues if any. |
13 window.testRunner.capturePixelsAsyncThen(function() { | 13 window.testRunner.capturePixelsAsyncThen(function() { |
14 window.testRunner.notifyDone(); | 14 window.testRunner.notifyDone(); |
15 }); | 15 }); |
16 }; | 16 }; |
17 </script> | 17 </script> |
18 </head> | 18 </head> |
19 <body> | 19 <body> |
20 <!-- This previously tried to read the size of the image when | 20 <!-- This previously tried to read the size of the image when |
21 ImageDecoder::m_failed was true, triggering either an assert or a | 21 ImageDecoder::m_failed was true, triggering either an assert or a |
22 read of random memory. Thanks to Robert Swiecki for the test case. --> | 22 read of random memory. Thanks to Robert Swiecki for the test case. --> |
23 <img src="resources/size-failure.gif"> | 23 <img src="resources/size-failure.gif"> |
24 <p>PASS</p> | 24 <p>PASS</p> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |