blob: 36917841f7a1ff71752ba4d2472a8fcf6b4aa31c [file] [log] [blame]
function log(msg) {
var div = document.createElement('div');
div.appendChild(document.createTextNode(msg));
document.getElementById('result').appendChild(div);
}
function recv(e) {
var msg = 'Received message: data="' + e.data + '" origin="' + e.origin + '"';
log(msg);
if (e.data.match(/data="runNextTest"/))
runNextTest();
if (e.data.match(/data="done"/) && window.testRunner)
testRunner.notifyDone();
}