5 window
.jsTestIsAsync
= true;
6 window
.isOnErrorTest
= true;
8 <script src=
"../../resources/js-test.js"></script>
9 <script src=
"resources/onerror-test.js"></script>
11 <body onload=
"setTimeout(function () { throwException('exception in setTimeout'); }, 0); throwException('exception in onload');">
13 description("This test should trigger 'window.onerror' multiple times, and successfully handle the errors.");
15 function callback(errorsHandled
) {
16 if (errorsHandled
=== 3)
20 dumpOnErrorArgumentValuesAndReturn(true, callback
);
22 throwException('Inline exception.');