Chromium Code Reviews| 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..a32fb600d15af384597943763d81b43fe56c1e53 |
| --- /dev/null |
| +++ b/LayoutTests/fast/events/window-onerror-10.html |
| @@ -0,0 +1,27 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| + <script> |
| + window.jsTestIsAsync = true; |
| + window.isOnErrorTest = true; |
| + </script> |
| + <script src="../js/resources/js-test-pre.js"></script> |
| + <script src="resources/onerror-test.js"></script> |
| +</head> |
| +<body onload="throwException('exception in onload');"> |
| + <script> |
| + description("This test should trigger 'window.onerror' multiple times, and successfully handle the errors."); |
| + |
| + function callback(errorsHandled) { |
| + if (errorsHandled === 3 && window.testRunner) |
|
do-not-use
2013/07/24 15:46:16
nit: superfluous window.testRunner check
Mike West
2013/07/25 08:09:42
Done.
|
| + finishJSTest(); |
| + } |
| + |
| + dumpOnErrorArgumentValuesAndReturn(true, callback); |
| + |
| + setTimeout(function () { throwException('exception in setTimeout'); }, 0); |
| + throwException('Inline exception.'); |
| + </script> |
| + <script src="../js/resources/js-test-post.js"></script> |
| +</body> |
| +</html> |