[IMP] Cleanup + timeout

bzr revid: ddm@openerp.com-20131230142601-w9zamknj7h4qw9zh
This commit is contained in:
ddm
2013-12-30 15:26:01 +01:00
parent cd45e69769
commit 97e0e97c7a
3 changed files with 4 additions and 14 deletions
@@ -32,6 +32,6 @@ testRunner.run(function testBannerTour (page) {
}, function finish () {
console.log('{ "event": "success" }');
phantom.exit();
}, 25000);
}, 25000);
}, 30000);
}, 20000);
});
@@ -10,15 +10,5 @@ testRunner.run(function simpleDomTest (page) {
}, function success () {
console.log('{ "event": "success" }');
phantom.exit();
}, 20000, function errorStatus () {
var status = page.evaluate(function () {
return {
href: window.location.href,
jQueryFound: (typeof window.$ === 'function'),
openerpFound: (typeof window.openerp === 'object'),
websiteFound: (typeof window.openerp.website === 'object'),
}
});
return status.href+" - jQuery: "+status.jQueryFound+" - openerp: " +status.openerpFound+ " - website: "+status.websiteFound;
});
}, 20000);
});
@@ -1,4 +1,4 @@
function waitFor(ready, callback, timeout, timeoutMessageCallback) {
function waitFor (ready, callback, timeout, timeoutMessageCallback) {
timeout = timeout || 10000;
var start = new Date().getTime();
var condition = ready();