Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing duplicate entry of benchmark function

  • Loading branch information...
commit 52b6f20a9254ab56894b8eb721a14bde729e40eb 1 parent a374ec5
@i-arindam i-arindam authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/unittest.js
View
8 src/unittest.js
@@ -428,14 +428,6 @@ Test.Unit.Assertions.prototype = {
assertElementMatches: function(element, expression) {
this.assertElementsMatch([element], expression);
},
- benchmark: function(operation, iterations) {
- var startAt = new Date();
- (iterations || 1).times(operation);
- var timeTaken = ((new Date())-startAt);
- this.info((arguments[2] || 'Operation') + ' finished ' +
- iterations + ' iterations in ' + (timeTaken/1000)+'s' );
- return timeTaken;
- },
_isVisible: function(element) {
element = $(element);
if(!element.parentNode) return true;
Please sign in to comment.
Something went wrong with that request. Please try again.