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..b2610225cd6b604939a2f80281b90c972b659786 |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-07.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="resources/onerror-test.js"></script> |
+ <script> |
+ window.onerror = function (message) { |
+ if (this === window) |
do-not-use
2013/07/23 14:46:09
We could use shouldBe(this, window); if we used js
|
+ log("PASS: 'this' inside 'window.onerror' handler is 'window'"); |
+ else |
+ log("FAIL: 'this' inside 'window.onerror' handler is not 'window'"); |
+ return true; |
+ }; |
+ </script> |
+</head> |
+<body> |
+ <p>This tests that 'window.onerror' is called on the window object.</p> |
+ <script> |
+ throwException() |
+ </script> |
+</body> |
+</html> |