Sfoglia il codice sorgente

remove console in matrix4

simonThiele 10 anni fa
parent
commit
9197b1b929
1 ha cambiato i file con 8 aggiunte e 9 eliminazioni
  1. 8 9
      test/unit/math/Matrix4.js

+ 8 - 9
test/unit/math/Matrix4.js

@@ -167,7 +167,7 @@ test( "getInverse", function() {
 	b.getInverse( a, false );
 	ok( matrixEquals4( b, new THREE.Matrix4() ), "Passed!" );
 
-	try { 
+	try {
 		b.getInverse( c, true );
 		ok( false, "Passed!" ); // should never get here.
 	}
@@ -225,8 +225,7 @@ test( "makeBasis/extractBasis", function() {
 		b.extractBasis( outBasis[0], outBasis[1], outBasis[2] );
 		// check what goes in, is what comes out.
 		for( var j = 0; j < outBasis.length; j ++ ) {
-			console.log( outBasis[j], testBasis[j] );
-			ok( outBasis[j].equals( testBasis[j] ), "Passed!" );		
+			ok( outBasis[j].equals( testBasis[j] ), "Passed!" );
 		}
 
 		// get the basis out the hard war
@@ -236,9 +235,9 @@ test( "makeBasis/extractBasis", function() {
 		}
 		// did the multiply method of basis extraction work?
 		for( var j = 0; j < outBasis.length; j ++ ) {
-			ok( outBasis[j].equals( testBasis[j] ), "Passed!" );		
+			ok( outBasis[j].equals( testBasis[j] ), "Passed!" );
 		}
-	}	
+	}
 });
 
 test( "transpose", function() {
@@ -248,9 +247,9 @@ test( "transpose", function() {
 
 	b = new THREE.Matrix4().set( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 );
 	var c = b.clone().transpose();
-	ok( ! matrixEquals4( b, c ), "Passed!" ); 
+	ok( ! matrixEquals4( b, c ), "Passed!" );
 	c.transpose();
-	ok( matrixEquals4( b, c ), "Passed!" ); 
+	ok( matrixEquals4( b, c ), "Passed!" );
 });
 
 test( "clone", function() {
@@ -313,7 +312,7 @@ test( "compose/decompose", function() {
 				m.decompose( t2, r2, s2 );
 
 				var m2 = new THREE.Matrix4().compose( t2, r2, s2 );
-			
+
 				var matrixIsSame = matrixEquals4( m, m2 );
 				/* debug code
 				if( ! matrixIsSame ) {
@@ -326,4 +325,4 @@ test( "compose/decompose", function() {
 			}
 		}
 	}
-});
+});