https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 03de2396655f9bb265e66e6e51a01ec77b4cba93 authored by Anne van Kesteren on 04 October 2018, 15:11:13 UTC
XHR: no headers received event for a network error
Tip revision: 03de239
WorkerLocation_host.htm
<!DOCTYPE html>
<title> WorkerLocation URL decomposition IDL attribute: host </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/WorkerLocation.js');
  worker.onmessage = t.step_func_done(function(e) {
    assert_equals(e.data.host, location.host);
  });
});
</script>
back to top