https://github.com/web-platform-tests/wpt
Revision be666a5d73d5ca27723bedbe8be202d1daa4451b authored by Boris Zbarsky on 03 April 2018, 17:09:28 UTC, committed by Boris Zbarsky on 03 April 2018, 17:09:28 UTC
1 parent 7c51ebb
Raw File
Tip revision: be666a5d73d5ca27723bedbe8be202d1daa4451b authored by Boris Zbarsky on 03 April 2018, 17:09:28 UTC
Use stable error messages in the link onload event tests by default.
Tip revision: be666a5
WorkerLocation_pathname.htm
<!DOCTYPE html>
<title> WorkerLocation URL decomposition IDL attribute: pathname </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) {
    var pathname = location.pathname;
    var expected = pathname.substring(0, pathname.lastIndexOf('/')) + '/support/WorkerLocation.js';
    assert_equals(e.data.pathname, expected);
  });
});
</script>
back to top