https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5f15f0759999ddd8d9203d05474c935528fc5f7e authored by Simon Pieters on 09 December 2016, 08:14:18 UTC
Make tests fail if the feature is not supported
Tip revision: 5f15f07
WorkerLocation_hash.htm
<!DOCTYPE html>
<title> WorkerLocation URL decomposition IDL attribute: hash </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#HashString");
  worker.onmessage = t.step_func_done(function(e) {
    assert_equals(e.data.hash, "#HashString");
  });
});
</script>
back to top