https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 100fc93516d33821fc0ba3087614329e24a9b360 authored by James Graham on 17 April 2014, 12:28:31 UTC
Improve cleanup for websockets unload tests
Tip revision: 100fc93
open-url-worker-simple.htm
 <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>XMLHttpRequest: relative URLs in worker scripts resolved by script URL</title>
    <link rel="stylesheet" href="/resources/testharness.css" />
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-open()-method" data-tested-assertations="following::OL[1]/LI[3] following::OL[1]/LI[3]/ol[1]/li[1]" />
</head>
<body>
    <div id="log"></div>
    <script type="text/javascript">
        var test = async_test()
        var worker = new Worker("resources/workerxhr-simple.js")
    	worker.onmessage = function (e) {
            test.step(function(){
                assert_equals(e.data, 'PASSED')
                test.done()
            })
        }
        worker.postMessage('start')
    </script>
</body>
</html>

back to top