chromium/third_party/blink/web_tests/fast/files/workers/resources/worker-read-common.js

function log(message)
{
    postMessage(message);
}

onmessage = function(event)
{
    var testFiles = event.data;
    log("Received files in worker");
    runNextTest(testFiles);
}