Index: LayoutTests/fast/events/window-onerror-07.html |
diff --git a/LayoutTests/fast/events/window-onerror-07.html b/LayoutTests/fast/events/window-onerror-07.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0447a61443934c7b4a66a1d8010b4540df359d13 |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-07.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="../js/resources/js-test-pre.js"></script> |
+ <script src="resources/onerror-test.js"></script> |
+</head> |
+<body> |
+ <p>This tests that 'window.onerror' is called on the window object.</p> |
+ <script> |
+ var thisInsideOnerror = null; |
+ window.onerror = function (message) { |
+ thisInsideOnerror = this; |
+ shouldBe('thisInsideOnerror', 'window'); |
+ }; |
+ |
+ throwException() |
+ </script> |
+ <script src="../js/resources/js-test-post.js"></script> |
+</body> |
+</html> |