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..ec0852ea7cb9d242fc8540a2588c0c7ce49f131d |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-07.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script> |
+ window.isOnErrorTest = true; |
+ </script> |
+ <script src="../js/resources/js-test-pre.js"></script> |
+ <script src="resources/onerror-test.js"></script> |
+</head> |
+<body> |
+ <script> |
+ description("This tests that 'window.onerror' is called on the window object."); |
+ 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> |