summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/testing.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-11-16 11:14:17 +0100
committerXavier Morel <xmo@openerp.com>2012-11-16 11:14:17 +0100
commit796e80ec2dafbd05e35dd7baf00f215393e9260c (patch)
treef10aa7383913dadb0da3c393faa3d627cdccf946 /addons/web/static/src/js/testing.js
parent0d85c24ae32916064e74680ef3439dd1bdec3440 (diff)
[FIX] deferred.pipe -> deferred.then
bzr revid: xmo@openerp.com-20121116101417-mkcjrdtocl6w7408
Diffstat (limited to 'addons/web/static/src/js/testing.js')
-rw-r--r--addons/web/static/src/js/testing.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/js/testing.js b/addons/web/static/src/js/testing.js
index fb8ebc25044..b0d744ae006 100644
--- a/addons/web/static/src/js/testing.js
+++ b/addons/web/static/src/js/testing.js
@@ -74,7 +74,7 @@ openerp.testing = {};
).promise();
}
try {
- return $.when(fn.apply(null, params)).pipe(function (result) {
+ return $.when(fn.apply(null, params)).then(function (result) {
// Wrap for RPC layer unwrapper thingy
return {result: result};
});
@@ -121,7 +121,7 @@ openerp.testing = {};
} catch (e) {
actual_call = $.Deferred().reject(e);
}
- actual_call.pipe(success, failure);
+ actual_call.then(success, failure);
}
};
var teardown = function () {
@@ -320,7 +320,7 @@ openerp.testing = {};
{name: 'db_original_name', value: db.source},
{name: 'db_name', value: dbname}
]
- }).pipe(function (result) {
+ }).then(function (result) {
if (result.error) {
return $.Deferred().reject(result.error).promise();
}
@@ -333,7 +333,7 @@ openerp.testing = {};
{name: 'drop_pwd', value: db.supadmin},
{name: 'drop_db', value: dbname}
]
- }).pipe(function (result) {
+ }).then(function (result) {
if (result.error) {
return $.Deferred().reject(result.error).promise();
}