1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/testing/mochitest/tests/Harness_sanity/test_sanityException.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 + <title>Test that uncaught exceptions in mochitests cause failures</title> 1.8 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 +</head> 1.10 +<body> 1.11 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=670817">Mozilla Bug 670817</a> 1.12 +<script> 1.13 +ok(true, "a call to ok"); 1.14 +SimpleTest.expectUncaughtException(); 1.15 +throw "an uncaught exception"; 1.16 +</script> 1.17 +</body> 1.18 +</html>