blob: 7acff1f5587b4f4e91b4fa3caeecf2f7e5b8f91e [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>Web Workers: Worker ErrorEvent - bubbles, cancelable</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
async_test(function(t) {
var worker = new Worker('./support/ErrorEvent.js');
worker.onerror = t.step_func_done(function(e) {
assert_false(e.bubbles, "onerror on worker doesn't bubble");
assert_true(e.cancelable, "onerror on worker is cancelable");
});
worker.postMessage("Error Message");
}, "ErrorEvent on worker doesn't bubble and is cancelable");
</script>