summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/testing.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-11-16 11:55:54 +0100
committerXavier Morel <xmo@openerp.com>2012-11-16 11:55:54 +0100
commite1e4c48c181319b01e44c78d94a999e91c515ba0 (patch)
tree7b4cfa56af444a3121b215e1db0fa8f0568da631 /addons/web/static/src/js/testing.js
parent796e80ec2dafbd05e35dd7baf00f215393e9260c (diff)
[REM] test runner feature which probably caused more trouble than it caught
avoid catching exception in executed callback, it just hinders debugging by generated completely bonkers traces bzr revid: xmo@openerp.com-20121116105554-hu45anetrj1a8tl6
Diffstat (limited to 'addons/web/static/src/js/testing.js')
-rw-r--r--addons/web/static/src/js/testing.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/addons/web/static/src/js/testing.js b/addons/web/static/src/js/testing.js
index b0d744ae006..bf39f543734 100644
--- a/addons/web/static/src/js/testing.js
+++ b/addons/web/static/src/js/testing.js
@@ -115,13 +115,7 @@ openerp.testing = {};
setup();
}, failure);
} else {
- var actual_call;
- try {
- actual_call = $.when(fn.apply(null, args))
- } catch (e) {
- actual_call = $.Deferred().reject(e);
- }
- actual_call.then(success, failure);
+ $.when(fn.apply(null, args)).then(success, failure);
}
};
var teardown = function () {