[IMP] website: ui_test_runer: display report before 'wait for' message
bzr revid: chm@openerp.com-20140123081721-gi9y1y5mfneaufy6
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user