https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 8d9511f490f0dc163cbc428a1fb63764b02b391e authored by Robin Berjon on 17 April 2014, 10:42:34 UTC
remove testing relying on detach() since that is now supposed to do nothing
Tip revision: 8d9511f
WorkerLocation_search_empty.htm
<!DOCTYPE html>
<html>
<head>
<title> WorkerLocation.search with empty &lt;query&gt; </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 = "?";
    var ExpectedResult = SearchString;
    var description = "WorkerLocation.search Getter Condition: input is a hierarchical URL, "
                    + "and contained a &lt;query&gt; component (possibly an empty one).";
    
    var t = async_test("Test Description: " + description);
                  
    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