blob: 48dc75e751c0cc7516b36cb1700c0f56743cd35f [file] [log] [blame]
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var console_messages = document.createElement("ol");
document.body.appendChild(console_messages);
function log(message)
{
var item = document.createElement("li");
item.appendChild(document.createTextNode(message));
console_messages.appendChild(item);
}
var worker = createWorker('resources/access-control-basic-get-fail-non-simple.js');
worker.postMessage("START");
worker.onmessage = function(event)
{
if (/log .+/.test(event.data))
log(event.data.substr(4));
else if (/DONE/.test(event.data)) {
log("DONE");
if (window.testRunner)
testRunner.notifyDone();
} else {
log("ERROR");
if (window.testRunner)
testRunner.notifyDone();
}
}