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