Revision fc74e27c28b32d0bc6db32f56faddd3263c9a2cb authored by Simon Pieters on 03 February 2014, 15:45:58 UTC, committed by Simon Pieters on 03 February 2014, 15:45:58 UTC
1 parent 58e0b85
Raw File
apisample5.htm
<!DOCTYPE HTML>
<html>
<head>
<title>Harness Ignoring Uncaught Exception</title>
</head>
<script src="testharness.js"></script>

<body>
<h1>Harness Ignoring Uncaught Exception</h1>
<div id="log"></div>
<script>
setup({allow_uncaught_exception:true});
var t = async_test("setup({allow_uncaught_exception:true}) should allow tests to pass even if there is an exception");
onerror = t.step_func(function() {t.done()});
throw new Error("Example Error");
</script>
</body>
</html>
back to top