OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 This test passes if it does not crash and 'PASS' is printed.<br/> | 3 This test passes if it does not crash and 'PASS' is printed.<br/> |
4 <img id="crash" src="resources/draw-image-crash.svg"></img> | 4 <img id="crash" src="resources/draw-image-crash.svg"></img> |
5 <script> | 5 <script> |
6 if (window.testRunner) | 6 if (window.testRunner) |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 | 8 |
9 window.onload = function() { | 9 setTimeout(function() { |
10 if (location.hash == '#done') { | 10 if (location.hash == '#done') { |
11 document.write('PASS'); | 11 document.write('PASS'); |
12 if (window.testRunner) { | 12 if (window.testRunner) { |
13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
14 testRunner.notifyDone(); | 14 testRunner.notifyDone(); |
15 } | 15 } |
16 } else { | 16 } else { |
17 location.hash = 'done'; | 17 location.hash = 'done'; |
18 window.location.reload(); | 18 window.location.reload(); |
19 } | 19 } |
20 } | 20 }, 0); |
21 </script> | 21 </script> |
22 </html> | 22 </html> |
23 | 23 |
OLD | NEW |