summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/tests/Harness_sanity/test_sanityException.html
blob: e1ed1483694c427ec7c03a828e4e593560d229c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
  <title>Test that uncaught exceptions in mochitests cause failures</title>
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=670817">Mozilla Bug 670817</a>
<script>
ok(true, "a call to ok");
SimpleTest.expectUncaughtException();
throw "an uncaught exception";
</script>
</body>
</html>