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