Revision 81cd21da1bc6a665a2b8a3439a065aa00dd5c14b authored by Aryeh Gregor on 26 October 2016, 13:20:08 UTC, committed by Aryeh Gregor on 26 October 2016, 13:20:31 UTC
Missed in #3615.
1 parent 0acd8f6
Worker_ErrorEvent_type.htm
<!DOCTYPE html>
<title> AbstractWorker ErrorEvent.type </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
// The worker events races with the window's load event; if the worker events
// arrive first, the harness will detect the error event and fail the test.
setup({ allow_uncaught_exception: true });
async_test(function(t) {
var worker = new Worker('./support/ErrorEvent.js');
worker.onerror = t.step_func_done(function(e) {
assert_class_string(e, 'ErrorEvent');
assert_equals(e.type, 'error');
});
worker.postMessage("Error Message");
});
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...