This is a first step towards lazy loading the majority of the JS: the boot JS code should not depend on any libraries (underscore.js and jQuery). Even without lazy loading in mind, this would be a nice-to-have. Part of https://github.com/odoo/odoo/pull/32181 task-1961045
19 lines
471 B
JavaScript
19 lines
471 B
JavaScript
(function () {
|
|
"use strict";
|
|
|
|
odoo.__DEBUG__.didLogInfo.then(function () {
|
|
var modulesInfo = odoo.__DEBUG__.jsModules;
|
|
|
|
QUnit.module('Odoo JS Modules');
|
|
|
|
QUnit.test('all modules are properly loaded', function (assert) {
|
|
assert.expect(2);
|
|
|
|
assert.deepEqual(modulesInfo.missing, [],
|
|
"no js module should be missing");
|
|
assert.deepEqual(modulesInfo.failed, [],
|
|
"no js module should have failed");
|
|
});
|
|
});
|
|
})();
|