7 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
12 log("Test inline web worker via blob URL.");
14 "onmessage = function(e) {",
15 " postMessage('Hello from worker');",
18 var blobURL
= URL
.createObjectURL(new Blob([string
]));
19 var worker
= new Worker(blobURL
);
20 worker
.onmessage = function(event
) {
23 if (testRunner
.notifyDone
)
24 testRunner
.notifyDone();
26 worker
.postMessage("hi");
29 if (window
.testRunner
) {
30 testRunner
.setAllowUniversalAccessFromFileURLs(false);
31 testRunner
.setAllowFileAccessFromFileURLs(true);
32 testRunner
.dumpAsText();
33 testRunner
.waitUntilDone();
37 <body onload=
"runTest()">
38 <pre id='console'
></pre>