<!DOCTYPE HTML>
<html>
<head>
<title>Dedicated Worker Tests - Allowed Uncaught Exception</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>Dedicated Web Worker Tests - Allowed Uncaught Exception</h1>
<p>Demonstrates running <tt>testharness</tt> based tests inside a dedicated web worker.
<p>The test harness is expected to pass despite an uncaught exception in a worker because that worker is configured to allow uncaught exceptions.</p>
<div id="log"></div>

<script>
test(function(t) {
        assert_true("Worker" in self, "Browser should support Workers");
    },
    "Browser supports Workers");

fetch_tests_from_worker(new Worker("worker-uncaught-allow.js"));
</script>
<script type="text/json" id="expected">
{
  "summarized_status": {
    "status_string": "OK",
    "message": null
  },
  "summarized_tests": [
    {
      "status_string": "PASS",
      "name": "Browser supports Workers",
      "properties": {},
      "message": null
    },
    {
      "status_string": "PASS",
      "name": "onerror event is triggered",
      "properties": {},
      "message": null
    }
  ],
  "type": "complete"
}
</script>
</body>
