summaryrefslogtreecommitdiff
path: root/addons/web/static/lib
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2020-09-29 09:45:57 +0000
committerAaron Bohy <aab@odoo.com>2020-09-29 09:59:53 +0000
commit598d036b59012af0a95894d759fe3b6276fc8ccb (patch)
tree92acbb45e3fff128fde26ea42d1a07d1ee023b45 /addons/web/static/lib
parenta97d3839c676f102eb6f6e94f824b6e0cd257455 (diff)
[IMP] web: qunit: always log name of failing test
After each test, a check is done that there is no leftover in the DOM. If there are, the suite fails, but there is no indication on the test that left elements in the DOM. This commit logs that missing information. We also stop dumping the DOM when this happens, as it was rather creating noise than providing useful information (the remaining elements are still logged though). closes odoo/odoo#58777 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'addons/web/static/lib')
-rw-r--r--addons/web/static/lib/qunit/qunit-2.9.1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/lib/qunit/qunit-2.9.1.js b/addons/web/static/lib/qunit/qunit-2.9.1.js
index 1e8e542c87c..303d4fb40de 100644
--- a/addons/web/static/lib/qunit/qunit-2.9.1.js
+++ b/addons/web/static/lib/qunit/qunit-2.9.1.js
@@ -3142,7 +3142,7 @@
this.pushFailure("Expected at least one assertion, but none were run - call " + "expect(0) to accept zero assertions.", this.stack);
}
- emit("OdooAfterTestHook"); // Odoo customization
+ emit("OdooAfterTestHook", { moduleName: this.module.name, testName: this.testName }); // Odoo customization
var i,
module = this.module,