https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 04efd6e1335a95c91193bee07836e5788c79a0d7 authored by James Graham on 02 September 2015, 11:49:44 UTC
Fix script scheduling test and make it less timing sensitive
Tip revision: 04efd6e
WorkerGlobalScope_ErrorEvent_colno.htm
<!DOCTYPE html>
<title> WorkerGlobalScope onerror event handler argument: col </title>
<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.onmessage = t.step_func_done(function(e) {
    assert_equals(typeof e.data.colno, "number");
  });
  worker.postMessage("Error Message");
});
</script>
back to top