blob: 47e163d7b807e88bc2ed398f7935afe6df6d6722 [file] [log] [blame]
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var console_messages = document.createElement("ul");
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/xmlhttprequest-file-not-found.js');
worker.onmessage = function(evt)
{
if (/log .+/.test(evt.data))
log(evt.data.substr(4));
else if (/DONE/.test(evt.data)) {
log("PASS");
if (window.testRunner)
testRunner.notifyDone();
}
}