-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #729 from rollbar/wj-capture-uncaught
Allow enable/disable uncaught errors/rejections in .configure
- Loading branch information
Showing
5 changed files
with
466 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Generate errors for test automation</title> | ||
<!-- Throwing inside karma test files won't work, | ||
but you can do it here and let karma load this file. --> | ||
<script> | ||
window.throwError = function throwError() { | ||
// Example error, which will be reported to rollbar when `captureUncaught` | ||
// is true in the config. | ||
throw new Error('test error'); | ||
}; | ||
</script> | ||
</head> | ||
<body> | ||
<div style="text-align:center"> | ||
<h1> | ||
Generate errors for test automation | ||
</h1> | ||
</div> | ||
<button id="throw-error" onclick="throwError()">Throw Error</button> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.