summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/testing.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2013-11-14 10:46:24 +0100
committerChristophe Simonis <chs@openerp.com>2013-11-14 10:46:24 +0100
commitb61997e71671c7640ca3fe271804de46550c8502 (patch)
tree6d68a85f8e6c3e9121cf55be72e4b1b38805f3f1 /addons/web/static/src/js/testing.js
parent193f1d2b26dbaf0c8d6a17355842a0953ecbe84c (diff)
[FIX] web: correct url matching in tests
bzr revid: chs@openerp.com-20131114094624-588lvc9vunwa99d8
Diffstat (limited to 'addons/web/static/src/js/testing.js')
-rw-r--r--addons/web/static/src/js/testing.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/web/static/src/js/testing.js b/addons/web/static/src/js/testing.js
index a7768f0ca24..f607b278437 100644
--- a/addons/web/static/src/js/testing.js
+++ b/addons/web/static/src/js/testing.js
@@ -58,8 +58,7 @@ openerp.testing = {};
}
var fn, params;
var needle = rparams.model + ':' + rparams.method;
- if (url.url === '/web/dataset/call_kw'
- && needle in this.responses) {
+ if (url.url.substr(0, 20) === '/web/dataset/call_kw' && needle in this.responses) {
fn = this.responses[needle];
params = [
rparams.args || [],