[FIX] add session context to contexts being evaluated in context tester

bzr revid: xmo@openerp.com-20120507144739-72simuyd5glz233l
This commit is contained in:
Xavier Morel 2012-05-07 16:47:39 +02:00
parent b74a02bdfb
commit a4ad6f8657
1 changed files with 3 additions and 1 deletions

View File

@ -1046,7 +1046,9 @@ instance.web.JsonRPC = instance.web.CallbackEnabled.extend({
'<li>Source: %(source)s</li>' +
'</ul>';
try {
var ctx = this.test_eval_contexts(source.contexts);
// see Session.eval_context in Python
var ctx = this.test_eval_contexts(
([this.context] || []).concat(source.contexts));
if (!_.isEqual(ctx, expected.context)) {
instance.webclient.notification.warn('Context mismatch, report to xmo',
_.str.sprintf(match_template, {