testing/mochitest/tests/Harness_sanity/test_sanityException2.html
author Joel Maher <jmaher@mozilla.com>
Wed, 05 Mar 2014 10:32:02 -0500
changeset 189259 f8d98d12013595375f61a60a658fbd6c3deeb734
parent 75085 testing/mochitest/tests/test_sanityException2.html@f1c41350c548e5f64d206e7559a28d251ddaefff
child 528457 c9c0c6f2eed54a187e124942e53c3660b4cf17d8
permissions -rw-r--r--
Bug 971025 - move testing/mochitest/test/test_* to testing/mochitest/test/Harness_sanity. r=ted

<!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>
SimpleTest.waitForExplicitFinish();
ok(true, "a call to ok");
SimpleTest.executeSoon(function() {
  SimpleTest.expectUncaughtException();
  throw "an uncaught exception";
});
SimpleTest.executeSoon(function() {
  SimpleTest.finish();
});
</script>
</body>
</html>