Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / window-onerror-07.html
blob0c2743254a83dd3c31ce75b5d4884207eaa1336a
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 tests that 'window.onerror' is called on the window object.");
13 var thisInsideOnerror = null;
14 window.onerror = function (message) {
15 thisInsideOnerror = this;
16 shouldBe('thisInsideOnerror', 'window');
19 throwException()
20 </script>
21 </body>
22 </html>