https://github.com/web-platform-tests/wpt
Raw File
Tip revision: fde5297e01bba6c17ed7a80b606fa0e26e6c2c29 authored by Hallvord R. M. Steen on 01 April 2014, 12:49:35 UTC
minor bugfixes
Tip revision: fde5297
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