summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/tools/test_menus.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/addons/web/static/src/js/tools/test_menus.js b/addons/web/static/src/js/tools/test_menus.js
index 224df93a008..1875c0e776e 100644
--- a/addons/web/static/src/js/tools/test_menus.js
+++ b/addons/web/static/src/js/tools/test_menus.js
@@ -79,14 +79,13 @@
var testPromise = Promise.resolve();
testPromise = chainDeferred($listOfAppMenuItems, testPromise, testApp);
return testPromise.then(function () {
+ console.log("Test took ", (performance.now() - startTime) / 1000, " seconds");
console.log("Successfully tested ", testedApps.length, " apps");
console.log("Successfully tested ", testedMenus.length - testedApps.length, " menus");
console.log("test successful");
+ }).catch(function (error) {
console.log("Test took ", (performance.now() - startTime) / 1000, " seconds");
- }).catch(function () {
- console.log("Test took ", (performance.now() - startTime) / 1000, " seconds");
- console.error('test failed')
- console.error("Error !");
+ console.error(error || 'test failed');
});
}