chromium/third_party/blink/web_tests/http/tests/workers/shared-worker-importScripts.html

<body>
<p>Test importScripts for SharedWorkers.</p>
<div id=result></div>
<script>
function log(message)
{
    document.getElementById("result").innerHTML += message + "<br>";
}

if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

var worker = new SharedWorker('resources/worker-importScripts.js', 'importScripts');

worker.port.onmessage = function(evt) {
    log(evt.data);
    if (evt.data == "DONE" && window.testRunner)
        testRunner.notifyDone();
}
</script>
</body>