Revision f6b063abedc0f8bb2cbecbb076972e9f92ce77c1 authored by James Graham on 09 January 2014, 19:06:47 UTC, committed by James Graham on 09 January 2014, 19:08:04 UTC
1 parent 46c4a37
Worker_ErrorEvent_type.htm
<!DOCTYPE html>
<html>
<head>
<title> AbstractWorker ErrorEvent.type </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
var ErrorMessage = "Error Message";
var FileName = './support/ErrorEvent.js';
var description = "ErrorEvent object and ErrorEvent.type";
var t = async_test("Test Description: " + description);
var worker = new Worker(FileName);
worker.onerror = t.step_func(function(evt)
{
assert_array_equals([evt.toString(), evt.type], ["[object ErrorEvent]", "error"]);
t.done();
});
worker.postMessage(ErrorMessage);
</script>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...