https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f9f791300f56bdec6f8c2ad3539e007bd6dd7dde authored by Ms2ger on 19 February 2016, 09:21:57 UTC
Add a test for non-support of Attr.nodeName.
Tip revision: f9f7913
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