summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/testing.js
diff options
context:
space:
mode:
authorKersten Jeremy <jke@openerp.com>2014-03-11 11:59:10 +0100
committerKersten Jeremy <jke@openerp.com>2014-03-11 11:59:10 +0100
commit09e5ec2345e392149eaadc6ad077c21308aa0337 (patch)
treeb7db4c19261cda6955a3795750813ff1e1334fac /addons/web/static/src/js/testing.js
parentd1798dcb36299d80cad3ebcf5a0993e1a4253eb3 (diff)
[TEST] Log for debug
bzr revid: jke@openerp.com-20140311105910-v1k3l0r8ga1lubp6
Diffstat (limited to 'addons/web/static/src/js/testing.js')
-rw-r--r--addons/web/static/src/js/testing.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/addons/web/static/src/js/testing.js b/addons/web/static/src/js/testing.js
index c4f5aeebd60..bcf7533e562 100644
--- a/addons/web/static/src/js/testing.js
+++ b/addons/web/static/src/js/testing.js
@@ -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