lib/karma/KarmaServerManager.js
function KarmaServerManager(config, port, runnerTimeUnlimited) {
    this._status = null;
    this._serverProcess = null;
    this._runnerTimeUnlimited = runnerTimeUnlimited;
    this._config = _.merge({ waitForServerTime: 10, waitForRunnerTime: 2 }, config, { port: port });

    var notIncluded = this._config.notIncluded || [];
    this._config.files = _.map(this._config.files, function(filename) {
        return { pattern: filename, included: _.indexOf(notIncluded, filename) < 0 };
    });
}
function KarmaServerManager(config, port, runnerTimeUnlimited) {
    this._status = null;
    this._serverProcess = null;
    this._runnerTimeUnlimited = runnerTimeUnlimited;
    this._config = _.merge({ waitForServerTime: 10, waitForRunnerTime: 2 }, config, { port: port });

    var notIncluded = this._config.notIncluded || [];
    this._config.files = _.map(this._config.files, function(filename) {
        return { pattern: filename, included: _.indexOf(notIncluded, filename) < 0 };
    });
}
function KarmaServerManager ( config , port , runnerTimeUnlimited ) { this . _status = null ; this . _serverProcess = null ; this . _runnerTimeUnlimited = runnerTimeUnlimited ; this . _config = _ . merge ( { waitForServerTime : 10 , waitForRunnerTime : 2 } , config , { port : port } ) ; var notIncluded = this . _config . notIncluded || [ ] ; this . _config . files = _ . map ( this . _config . files , function ( filename ) { return { pattern : filename , included : _ . indexOf ( notIncluded , filename ) < 0 } ; } ) ; }
Constructor for a Karma server instance

@param config {object} Karma configuration object that should be used
@param port {number} The port on which the Karma server should run
@param runnerTimeUnlimited {boolean} if set the KarmaServerManager will not limit the running time of the runner
@constructor
Constructor for a Karma server instance