Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / workers / shared-worker-importScripts.html
blob9372d587cd7212b5b85493d3b0456a5946cfe0a9
1 <body>
2 <p>Test importScripts for SharedWorkers.</p>
3 <div id=result></div>
4 <script>
5 function log(message)
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) {
18 log(evt.data);
19 if (evt.data == "DONE" && window.testRunner)
20 testRunner.notifyDone();
22 </script>
23 </body>