2 <p>Test importScripts for SharedWorkers.
</p>
7 document
.getElementById("result").innerHTML
+= message
+ "<br>";
10 if (window
.testRunner
) {
11 testRunner
.dumpAsText();
12 testRunner
.waitUntilDone();
15 var worker
= new SharedWorker('resources/worker-importScripts.js', 'importScripts');
17 worker
.port
.onmessage = function(evt
) {
19 if (evt
.data
== "DONE" && window
.testRunner
)
20 testRunner
.notifyDone();