Browse Source

Made sure the arguments are handled correctly when no complexity is specified.

John Resig 16 years ago
parent
commit
ca48ee91a3
1 changed files with 3 additions and 5 deletions
  1. 3 5
      dep/web/webrunner.js

+ 3 - 5
dep/web/webrunner.js

@@ -68,6 +68,9 @@
 	
 			if ( nameDone[name] != 3 )
 				return; 
+		} else {
+			fn = num;
+			num = 1;
 		}
 
 		time += timePerTest * numTests;
@@ -79,11 +82,6 @@
 			title = name;
 			var times = [], start, pos = 0, cur;
 			
-			if ( !fn ) {
-				fn = num;
-				num = '';
-			}
-	
 			setTimeout(function(){
 				// run tests
 				try {