Skip to content

Commit

Permalink
Don't scroll window while running
Browse files Browse the repository at this point in the history
This roughly doubles performance again. Plus, the
scrolling is plain annoying.
  • Loading branch information
jfirebaugh committed Apr 2, 2013
1 parent 7696558 commit ba21b08
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ function HTML(runner, root) {
});

runner.on('test end', function(test){
window.scrollTo(0, document.body.scrollHeight);

// TODO: add to stats
var percent = stats.tests / this.total * 100 | 0;
if (progress) progress.update(percent).draw(ctx);
Expand Down

1 comment on commit ba21b08

@vvo
Copy link

@vvo vvo commented on ba21b08 Apr 3, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brilliant. Scrolling window also prevented scroll-dependent testing.

Please sign in to comment.