Skip to content
This repository
Browse code

Removing duplicate entry of benchmark function

commit 52b6f20a9254ab56894b8eb721a14bde729e40eb 1 parent a374ec5
Arindam Chakraborty authored December 04, 2011

Showing 1 changed file with 0 additions and 8 deletions. Show diff stats Hide diff stats

  1. 8  src/unittest.js
8  src/unittest.js
@@ -428,14 +428,6 @@ Test.Unit.Assertions.prototype = {
428 428
   assertElementMatches: function(element, expression) {
429 429
     this.assertElementsMatch([element], expression);
430 430
   },
431  
-  benchmark: function(operation, iterations) {
432  
-    var startAt = new Date();
433  
-    (iterations || 1).times(operation);
434  
-    var timeTaken = ((new Date())-startAt);
435  
-    this.info((arguments[2] || 'Operation') + ' finished ' + 
436  
-       iterations + ' iterations in ' + (timeTaken/1000)+'s' );
437  
-    return timeTaken;
438  
-  },
439 431
   _isVisible: function(element) {
440 432
     element = $(element);
441 433
     if(!element.parentNode) return true;

0 notes on commit 52b6f20

Please sign in to comment.
Something went wrong with that request. Please try again.