Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script> | |
| 5 window.jsTestIsAsync = true; | |
| 6 window.isOnErrorTest = true; | |
| 7 </script> | |
| 8 <script src="../js/resources/js-test-pre.js"></script> | |
| 9 <script src="resources/onerror-test.js"></script> | |
| 10 </head> | |
| 11 <body onload="throwException('exception in onload');"> | |
| 12 <script> | |
| 13 description("This test should trigger 'window.onerror' multiple times, a nd successfully handle the errors."); | |
| 14 | |
| 15 function callback(errorsHandled) { | |
| 16 if (errorsHandled === 3 && window.testRunner) | |
|
do-not-use
2013/07/24 15:46:16
nit: superfluous window.testRunner check
Mike West
2013/07/25 08:09:42
Done.
| |
| 17 finishJSTest(); | |
| 18 } | |
| 19 | |
| 20 dumpOnErrorArgumentValuesAndReturn(true, callback); | |
| 21 | |
| 22 setTimeout(function () { throwException('exception in setTimeout'); }, 0 ); | |
| 23 throwException('Inline exception.'); | |
| 24 </script> | |
| 25 <script src="../js/resources/js-test-post.js"></script> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |