[IMP] UI test debug info

bzr revid: ddm@openerp.com-20131227122426-debzjgmuc0ge72tq
This commit is contained in:
ddm
2013-12-27 13:24:26 +01:00
parent 3344f5792d
commit d3ec7c10dc
@@ -7,7 +7,8 @@ function waitFor(ready, callback, timeout) {
condition = ready();
} else {
if(!condition) {
console.log('{ "event": "error", "message": "Timeout after '+timeoutMillis+' ms" }');
var message = "Timeout after "+timeoutMillis+" ms\nWaiting for\n"+ready;
console.log('{ "event": "error", "message": "'+message+'" }');
phantom.exit(1);
} else {
clearInterval(interval);