[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:
parent
a9645151b6
commit
d632471f64
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue