Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / window-onerror-06.html
blobe633eb4a74b875b3e984897e453e57947796befb
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 window.isOnErrorTest = true;
6 </script>
7 <script src="../../resources/js-test.js"></script>
8 <script src="resources/onerror-test.js"></script>
9 </head>
10 <body>
11 <script>
12 description("This test should trigger 'window.onerror' only once, without diving into horrible recursion.");
14 function callback(errorNumber) {
15 if (errorNumber > 1)
16 testFailed("window.onerror should only be called once in this test.");
17 throwException("Nested exception.");
20 dumpOnErrorArgumentValuesAndReturn(true, callback);
22 throwException("Original exception.");
23 </script>
24 </body>
25 </html>