https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4b97ac70bda81f089de42e3dbe4a10e505a6436d authored by Philip Jägenstedt on 25 January 2018, 12:55:18 UTC
Merge remote-tracking branch 'origin/master' into annevk/meta-global
Tip revision: 4b97ac7
WorkerLocation_protocol.htm
<!DOCTYPE html>
<title> WorkerLocation URL decomposition IDL attribute: protocol </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.protocol, location.protocol);
  });
});
</script>
back to top