summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-11-16 08:29:06 +0100
committerXavier Morel <xmo@openerp.com>2012-11-16 08:29:06 +0100
commitd632471f647a1678b7cdb9c5b383a0fd9903d7df (patch)
tree95de4cc7f9b672f3168dd144b6acd8e841d96d48 /addons/web/static/src
parenta9645151b6f070d23d2f35810aee562c1354aba9 (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')
-rw-r--r--addons/web/static/src/js/testing.js2
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");