mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 02:12:01 +02:00
vanilla 19.0
This commit is contained in:
parent
991d2234ca
commit
d1963a3c3a
3066 changed files with 1651266 additions and 922560 deletions
|
|
@ -3128,7 +3128,7 @@
|
|||
},
|
||||
|
||||
|
||||
finish: function finish() {
|
||||
finish: async function finish() {
|
||||
config.current = this;
|
||||
|
||||
// Release the test callback to ensure that anything referenced has been
|
||||
|
|
@ -3148,7 +3148,13 @@
|
|||
this.pushFailure("Expected at least one assertion, but none were run - call " + "expect(0) to accept zero assertions.", this.stack);
|
||||
}
|
||||
|
||||
emit("OdooAfterTestHook", this); // Odoo customization
|
||||
// Odoo customization
|
||||
// wait for the task queue to be fully consummed, s.t. if there has been rejected promises
|
||||
// during the test, the unhandledrejection handlers have been called before the cleanups
|
||||
// have been executed, for the errors to be properly preventDefaulted if necessary (see
|
||||
// qunit.js, Error management section).
|
||||
await new Promise((r) => setTimeout(r, 0));
|
||||
emit("OdooAfterTestHook", this);
|
||||
|
||||
var i,
|
||||
module = this.module,
|
||||
|
|
@ -4903,9 +4909,11 @@
|
|||
var i,
|
||||
checked,
|
||||
html = "";
|
||||
|
||||
const names = new Set();
|
||||
for (i = 0; i < config.modules.length; i++) {
|
||||
if (config.modules[i].name !== "") {
|
||||
const name = config.modules[i].name;
|
||||
if (name !== "" && !names.has(name)) {
|
||||
names.add(name);
|
||||
checked = config.moduleId.indexOf(config.modules[i].moduleId) > -1;
|
||||
html += "<li><label class='clickable" + (checked ? " checked" : "") + "'><input type='checkbox' " + "value='" + config.modules[i].moduleId + "'" + (checked ? " checked='checked'" : "") + " />" + escapeText(config.modules[i].name) + "</label></li>";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue