summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/examples/apisample4.htm
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/resources/examples/apisample4.htm')
-rw-r--r--testing/web-platform/tests/resources/examples/apisample4.htm16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/resources/examples/apisample4.htm b/testing/web-platform/tests/resources/examples/apisample4.htm
new file mode 100644
index 000000000..c8fbbded6
--- /dev/null
+++ b/testing/web-platform/tests/resources/examples/apisample4.htm
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<title>Harness Handling Uncaught Exception</title>
+</head>
+<script src="../testharness.js"></script>
+
+<body>
+<h1>Harness Handling Uncaught Exception</h1>
+<div id="log"></div>
+<script>
+var t = async_test("This should show a harness status of 'Error' and a test status of 'Not Run'");
+throw new Error("Example Error");
+</script>
+</body>
+</html>