Skip to content

Commit

Permalink
bench/standalone/benchmark-runner.js morework
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeetienne committed Feb 26, 2012
1 parent 59905fe commit 1649227
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion bench/standalone/benchmark-runner.js
Expand Up @@ -126,9 +126,12 @@ Runner.prototype.run = function(idx){
};

Runner.prototype.abort = function(){
var suite = this._curSuite;
this._runningAll = false;
if( !this._curSuite ) return;
this._curSuite.abort();
this._curSuite = null;
this._displaySuite(suite, suite._runnerSelector);
};

Runner.prototype.runAll = function(){
Expand Down Expand Up @@ -185,6 +188,13 @@ Runner.prototype._runNext = function(){
});
jQuery('#runner .stats .nSuites').text(nSuites);
jQuery('#runner .stats .nBenchmarks').text(nBenchmarks);
})
});

jQuery(function(){
if( location.hash === '#runall' ){
runner.runAll();
}
});

})();

0 comments on commit 1649227

Please sign in to comment.