Index: LayoutTests/fast/events/window-onerror-10.html |
diff --git a/LayoutTests/fast/events/window-onerror-10.html b/LayoutTests/fast/events/window-onerror-10.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..279715fcba7058d039821bf306576855ff2305f2 |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-10.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="resources/onerror-test.js"></script> |
+ <script> |
+ if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+ var handledErrors = 0; |
+ function callback() { |
+ handledErrors++; |
+ if (handledErrors === 3 && window.testRunner) |
+ testRunner.notifyDone(); |
+ } |
+ |
+ DumpOnErrorArgumentValuesAndReturn(true, callback); |
+ </script> |
+</head> |
+<body onload="throwException('exception in onload');"> |
+ <p>This test should trigger 'window.onerror' multiple times, and successfully handle the errors.</p> |
+ <script> |
+ setTimeout(function () { throwException('exception in setTimeout'); }, 0); |
+ throwException('Inline exception.'); |
+ </script> |
+</body> |
+</html> |