https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b5ef37f1d7620f8fba03d5ad3bfa39e28e13fa64 authored by Lan Wei on 20 December 2018, 02:33:33 UTC
Support pen inputs in web platform tests
Tip revision: b5ef37f
WorkerLocation_hostname.htm
<!DOCTYPE html>
<title> WorkerLocation URL decomposition IDL attribute: hostname </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.hostname, location.hostname);
  });
});
</script>
back to top