https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 638ed72053ec83d65076325790b7c618bf3a88dc authored by Geoffrey Sneddon on 26 September 2018, 10:38:29 UTC
Revert "Make wptrunner chrome always use the WebDriver executor (#13200)"
Tip revision: 638ed72
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