diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-11-16 08:29:06 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-11-16 08:29:06 +0100 |
| commit | d632471f647a1678b7cdb9c5b383a0fd9903d7df (patch) | |
| tree | 95de4cc7f9b672f3168dd144b6acd8e841d96d48 /addons/web/static/src/js/testing.js | |
| parent | a9645151b6f070d23d2f35810aee562c1354aba9 (diff) | |
[IMP] web test runner: pass execute's arguments to the function to avoid duplication
bzr revid: xmo@openerp.com-20121116072906-0di2j83p602a2l9i
Diffstat (limited to 'addons/web/static/src/js/testing.js')
| -rw-r--r-- | addons/web/static/src/js/testing.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/testing.js b/addons/web/static/src/js/testing.js index 10fe7ecd778..fa68051f27d 100644 --- a/addons/web/static/src/js/testing.js +++ b/addons/web/static/src/js/testing.js @@ -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"); |
