https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 216c102d7d1ab1042057e2a304a7aefaaa417d5a authored by Robin Berjon on 09 April 2014, 18:20:13 UTC
duplicate entry for button
Tip revision: 216c102
WorkerLocation_search.htm
<!DOCTYPE html>
<html>
<head>
<title> WorkerLocation URL decomposition IDL attribute: search </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 SearchString = "?SearchString";
    var ExpectedResult = SearchString;
    
    var t = async_test("Test Description: WorkerLocation search attribute returns the current query component in the underlying URL.");
                  
    var worker = new Worker(FileName + SearchString);

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