Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / window-onerror-10.html
blobdaf5cc5392d9dba1f592e3750d14dba69f5fce21
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 window.jsTestIsAsync = true;
6 window.isOnErrorTest = true;
7 </script>
8 <script src="../../resources/js-test.js"></script>
9 <script src="resources/onerror-test.js"></script>
10 </head>
11 <body onload="setTimeout(function () { throwException('exception in setTimeout'); }, 0); throwException('exception in onload');">
12 <script>
13 description("This test should trigger 'window.onerror' multiple times, and successfully handle the errors.");
15 function callback(errorsHandled) {
16 if (errorsHandled === 3)
17 finishJSTest();
20 dumpOnErrorArgumentValuesAndReturn(true, callback);
22 throwException('Inline exception.');
23 </script>
24 </body>
25 </html>