Browse Source

Add public DSN testing page.

develop
Sam Black 4 years ago
parent
commit
1326e371cc
Signed by: samwwwblack GPG Key ID: 0FF0223994EA47D8
  1. 12
      testing/test_raven_js.html
  2. 13
      testing/test_raven_js.js

12
testing/test_raven_js.html

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Raven-JS Test page</title>
</head>
<body>
<h2>Raven JS Test page</h2>
<script src="https://cdn.ravenjs.com/3.19.1/raven.min.js" crossorigin="anonymous"></script>
<script src="test_raven_js.js"></script>
</body>
</html>

13
testing/test_raven_js.js

@ -0,0 +1,13 @@
Raven.config("http://f2b4f4f7f53a404aba943820670134b7@127.0.0.1:5000/api/sentry/1").install();
function testThrow() {
throw new Error("Raven JS client test exception");
}
try {
testThrow();
} catch (e) {
Raven.captureException(e);
}
Raven.captureMessage("Raven JS client test message");
Loading…
Cancel
Save