https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e46d835e8e757a910dadc70f4f6e6b581fac2af4 authored by James Graham on 16 October 2013, 16:59:22 UTC
Add rewriten path for web idl parser
Tip revision: e46d835
WorkerLocation_hash.htm
<!DOCTYPE html>
<html>
<head>
<title> WorkerLocation URL decomposition IDL attribute: hash </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
    
    var FileName = "./support/WorkerLocation.js";
    var HashString = "#HashString";
    var ExpectedResult = HashString;

    var t = async_test("Test Description: WorkerLocation.hash returns the current fragment identifier in the underlying URL.");
                  
    var worker = new Worker(FileName + HashString);

    worker.onmessage = t.step_func(function(evt)
    {
        assert_equals(evt.data.hash, ExpectedResult);
        t.done();
    });
</script>
</body>
</html>
back to top