odoo-13.0/addons/mail/static/tests/helpers/test_utils.js
/**
     * Set time to the max time in queue and execute all timeouts before this time.
     */
Set time to the max time in queue and execute all timeouts before this time.
Set time to the max time in queue and execute all timeouts before this time .
function runPendingTimeouts() {
        var maxTimeInQueue = 0;
        _.each(timeouts, function (value, key) {
            if (value.executeTime > maxTimeInQueue) {
                maxTimeInQueue = value.executeTime;
            }
        });
        setTime(maxTimeInQueue);
    }
function runPendingTimeouts ( ) { var maxTimeInQueue = 0 ; _ . each ( timeouts , function ( value , key ) { if ( value . executeTime > maxTimeInQueue ) { maxTimeInQueue = value . executeTime ; } } ) ; setTime ( maxTimeInQueue ) ; }
Set time to the max time in queue and execute all timeouts before this time.
Set time to the max time in queue and execute all timeouts before this time .