odoo-13.0/addons/web/static/tests/helpers/test_utils_create.js
/**
 * create a widget parent from given parameters.
 *
 * @param {Object} params This object will be given to addMockEnvironment, so
 *   any parameters from that method applies
 * @returns {Widget}
 */
create a widget parent from given parameters.
@param {Object} params This object will be given to addMockEnvironment, so
any parameters from that method applies
@returns {Widget}
create a widget parent from given parameters . @param { Object } params This object will be given to addMockEnvironment so any parameters from that method applies @returns { Widget }
function createParent(params) {
    var widget = new Widget();
    testUtilsMock.addMockEnvironment(widget, params);
    return widget;
}
function createParent ( params ) { var widget = new Widget ( ) ; testUtilsMock . addMockEnvironment ( widget , params ) ; return widget ; }
create a widget parent from given parameters.
create a widget parent from given parameters .