https://github.com/web-platform-tests/wpt
Raw File
Tip revision: abe917f7bffefea2cadd1c3c501d50339f5c2d9c authored by Hallvord R. M. Steen on 12 October 2015, 12:04:22 UTC
Removing some 'popups must be enabled' messages
Tip revision: abe917f
WorkerLocation_search_fragment.htm
<!DOCTYPE html>
<html>
<head>
<title> WorkerLocation.search with &lt;fragment&gt; in &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 = "?test#";
    var ExpectedResult = "?test";
    var description = "WorkerLocation.search - The (empty) &lt;fragment&gt; component is not part of "
                    + "the &lt;query&gt; component for input URL 'http://example.com/?test#'";
    
    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