Index: LayoutTests/fast/events/window-onerror-02.html |
diff --git a/LayoutTests/fast/events/window-onerror-02.html b/LayoutTests/fast/events/window-onerror-02.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e93cf0fee1fc277f0f332dc4ca53de19a2656812 |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-02.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="resources/onerror-test.js"></script> |
+ <script> |
+ DumpOnErrorArgumentValuesAndReturn(true); |
+ |
+ function test() |
+ { |
+ unknownObject.unknownProperty++; // caught by window.onerror |
+ } |
+ </script> |
+</head> |
+<body onload="test();"> |
+ <p>This test should trigger 'window.onerror', and successfully handle the error.</p> |
+</body> |
+</html> |