Index: LayoutTests/fast/events/window-onerror-09.html |
diff --git a/LayoutTests/fast/events/window-onerror-09.html b/LayoutTests/fast/events/window-onerror-09.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c08353b6927fe3a99398e1b11e4c9ca74e7ac8ce |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-09.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="resources/onerror-test.js"></script> |
+ <script> |
+ DumpOnErrorArgumentValuesAndReturn(true); |
+ </script> |
+</head> |
+<body> |
+ <p>This test should trigger 'window.onerror', and successfully handle the error.</p> |
+ <script> |
+ var evt = document.createEvent("Event"); |
+ evt.initEvent("error", true, true); |
+ window.dispatchEvent(evt); |
+ </script> |
+</body> |
+</html> |