https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d8d1e562cf597bc2314419b46aff77d9e3664247 authored by Anne van Kesteren on 08 October 2014, 07:34:29 UTC
Make new Blob throw
Tip revision: d8d1e56
WorkerLocation_port.htm
<!DOCTYPE html>
<html>
<head>
<title> WorkerLocation URL decomposition IDL attribute: port </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 ExpectedResult = "";
            
    var t = async_test("Test Description: WorkerLocation port attribute returns the current port in the underlying URL.");
                  
    var worker = new Worker(FileName);

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