[IMP] website: ui_test_runer: display report before 'wait for' message

bzr revid: chm@openerp.com-20140123081721-gi9y1y5mfneaufy6
This commit is contained in:
Christophe Matthieu
2014-01-23 09:17:21 +01:00
parent 4b429a033b
commit ffba2091e7
@@ -9,10 +9,10 @@ function waitFor (ready, callback, timeout, timeoutMessageCallback) {
if(!condition) {
var message = timeoutMessageCallback ? timeoutMessageCallback() : "Timeout after "+timeout+" ms";
console.log('{ "event": "error", "message": "'+message+'" }');
console.log("Waiting for...\n"+ready);
if (window.localStorage.getItem("test-report")) {
console.log(JSON.parse(website.localStorage.getItem("test-report")));
}
console.log("Waiting for...\n"+ready);
phantom.exit(1);
} else {
clearInterval(interval);