https://github.com/web-platform-tests/wpt
Raw File
Tip revision: afd169a1caa73c0870e4d30cf00de21b380fc978 authored by Ms2ger on 11 August 2015, 14:40:28 UTC
Don't suggest putting the author's name in the topic branch.
Tip revision: afd169a
Worker_ErrorEvent_bubbles_cancelable.htm
<!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>
back to top