runMultipleIterations: function()

in MotionMark/resources/runner/benchmark-runner.js [148:167]


    runMultipleIterations: function()
    {
        var self = this;
        var currentIteration = 0;

        this._runNextIteration = function() {
            currentIteration++;
            if (currentIteration < self._client.iterationCount)
                self.runAllSteps();
            else if (this._client && this._client.didFinishLastIteration) {
                document.body.style.backgroundColor = "";
                self._client.didFinishLastIteration();
            }
        }

        if (this._client && this._client.willStartFirstIteration)
            this._client.willStartFirstIteration();

        this.runAllSteps();
    },