blob: 795d565eb5cde5f2413d92a5ff80ff1c76d01672 [file] [log] [blame]
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
}
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var worker = createWorker();
worker.postMessage("eval self.MessageEvent = 'PASS'; MessageEvent;");
worker.postMessage("eval foo//bar");
worker.onmessage = function(evt) {
if (!/foo\/\/bar/.test(evt.data))
log(evt.data);
else {
log("DONE");
if (window.testRunner)
testRunner.notifyDone();
}
}