OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="resources/onerror-test.js"></script> |
| 5 <script> |
| 6 if (window.testRunner) |
| 7 testRunner.waitUntilDone(); |
| 8 |
| 9 var handledErrors = 0; |
| 10 function callback() { |
| 11 handledErrors++; |
| 12 if (handledErrors === 3 && window.testRunner) |
| 13 testRunner.notifyDone(); |
| 14 } |
| 15 |
| 16 DumpOnErrorArgumentValuesAndReturn(true, callback); |
| 17 </script> |
| 18 </head> |
| 19 <body onload="throwException('exception in onload');"> |
| 20 <p>This test should trigger 'window.onerror' multiple times, and successfull
y handle the errors.</p> |
| 21 <script> |
| 22 setTimeout(function () { throwException('exception in setTimeout'); }, 0
); |
| 23 throwException('Inline exception.'); |
| 24 </script> |
| 25 </body> |
| 26 </html> |
OLD | NEW |