https://github.com/web-platform-tests/wpt
Revision be666a5d73d5ca27723bedbe8be202d1daa4451b authored by Boris Zbarsky on 03 April 2018, 17:09:28 UTC, committed by Boris Zbarsky on 03 April 2018, 17:09:28 UTC
1 parent 7c51ebb
Raw File
Tip revision: be666a5d73d5ca27723bedbe8be202d1daa4451b authored by Boris Zbarsky on 03 April 2018, 17:09:28 UTC
Use stable error messages in the link onload event tests by default.
Tip revision: be666a5
WorkerLocation_port.htm
<!DOCTYPE html>
<title> WorkerLocation URL decomposition IDL attribute: port </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.port, location.port);
  });
});
</script>
back to top