[TEST] Log for debug

bzr revid: jke@openerp.com-20140311105910-v1k3l0r8ga1lubp6
This commit is contained in:
Kersten Jeremy 2014-03-11 11:59:10 +01:00
parent d1798dcb36
commit 09e5ec2345
1 changed files with 11 additions and 6 deletions

View File

@ -50,12 +50,17 @@ openerp.testing = {};
testing.current_module = null;
testing.templates = { };
testing.add_template = function (name) {
var xhr = QWeb2.Engine.prototype.get_xhr();
xhr.open('GET', name, false);
xhr.send(null);
(testing.templates[testing.current_module] =
testing.templates[testing.current_module] || [])
.push(xhr.responseXML);
try {
var xhr = QWeb2.Engine.prototype.get_xhr();
xhr.open('GET', name, false);
xhr.send(null);
(testing.templates[testing.current_module] =
testing.templates[testing.current_module] || [])
.push(xhr.responseXML);
}
catch(e) {
console.log(name + " ERRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRROOOOR");
}
};
/**
* Function which does not do anything