michael@0: /** michael@0: * Expects a file. Returns an object containing the size, type, name and path michael@0: * using another worker. Used to test posting of file from worker to worker. michael@0: */ michael@0: onmessage = function(event) { michael@0: var worker = new Worker("file_worker.js"); michael@0: michael@0: worker.postMessage(event.data); michael@0: michael@0: worker.onmessage = function(event) { michael@0: postMessage(event.data); michael@0: } michael@0: michael@0: worker.onerror = function(event) { michael@0: postMessage(undefined); michael@0: } michael@0: };