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