Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / window-onerror-09.html
blob75dd93fe41413f15d2d72fe01f19bfbd0d245d44
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', and successfully handle the error.");
13 dumpOnErrorArgumentValuesAndReturn(true);
15 var evt = document.createEvent("Event");
16 evt.initEvent("error", true, true);
17 window.dispatchEvent(evt);
18 </script>
19 </body>
20 </html>