[FIX] add session context to contexts being evaluated in context tester
bzr revid: xmo@openerp.com-20120507144739-72simuyd5glz233l
This commit is contained in:
parent
b74a02bdfb
commit
a4ad6f8657
|
@ -1046,7 +1046,9 @@ instance.web.JsonRPC = instance.web.CallbackEnabled.extend({
|
||||||
'<li>Source: %(source)s</li>' +
|
'<li>Source: %(source)s</li>' +
|
||||||
'</ul>';
|
'</ul>';
|
||||||
try {
|
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)) {
|
if (!_.isEqual(ctx, expected.context)) {
|
||||||
instance.webclient.notification.warn('Context mismatch, report to xmo',
|
instance.webclient.notification.warn('Context mismatch, report to xmo',
|
||||||
_.str.sprintf(match_template, {
|
_.str.sprintf(match_template, {
|
||||||
|
|
Loading…
Reference in New Issue