mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
18 lines
479 B
HTML
18 lines
479 B
HTML
<!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>
|