[IMP] web test runner: pass execute's arguments to the function to avoid duplication

bzr revid: xmo@openerp.com-20121116072906-0di2j83p602a2l9i
This commit is contained in:
Xavier Morel 2012-11-16 08:29:06 +01:00
parent a9645151b6
commit d632471f64
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ openerp.testing = {};
stop();
var timeout;
case_stack.execute(function () {
var result = callback(instance, $fixture, mock);
var result = callback.apply(null, arguments);
if (!(result && _.isFunction(result.then))) {
if (async) {
ok(false, "asynchronous test cases must return a promise");