Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / workers / worker-importScripts.html
blob7843a203706e8b25a40ee931803061f63fbbd8ec
1 <body>
2 <p>Test importScripts.</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 Worker('resources/worker-importScripts.js');
17 worker.onmessage = function(evt) {
18 log(evt.data);
19 if (evt.data == "DONE" && window.testRunner)
20 testRunner.notifyDone();
22 </script>
23 </body>
24 </html>