소스 검색

Tests: Clean up

Mugen87 7 년 전
부모
커밋
aeb4865bc6
1개의 변경된 파일0개의 추가작업 그리고 18개의 파일을 삭제
  1. 0 18
      test/unit/src/core/Geometry.tests.js

+ 0 - 18
test/unit/src/core/Geometry.tests.js

@@ -272,18 +272,6 @@ export default QUnit.module( 'Core', () => {
 
 		QUnit.test( "normalize", ( assert ) => {
 
-			var geometry = getGeometry();
-			geometry.computeLineDistances();
-
-			var distances = geometry.lineDistances;
-			assert.ok( distances[ 0 ] === 0, "distance to the 1st point is 0" );
-			assert.ok( distances[ 1 ] === 1 + distances[ 0 ], "distance from the 1st to the 2nd is sqrt(2nd - 1st) + distance - 1" );
-			assert.ok( distances[ 2 ] === Math.sqrt( 0.5 * 0.5 + 1 ) + distances[ 1 ], "distance from the 1st to the 3nd is sqrt(3rd - 2nd) + distance - 1" );
-
-		} );
-
-		QUnit.test( "normalize (actual)", ( assert ) => {
-
 			var a = getGeometry();
 			var sqrt = 0.5 * Math.sqrt( 2 );
 			var expected = [
@@ -333,12 +321,6 @@ export default QUnit.module( 'Core', () => {
 
 		} );
 
-		QUnit.todo( "computeLineDistances", ( assert ) => {
-
-			assert.ok( false, "everything's gonna be alright" );
-
-		} );
-
 		QUnit.test( "computeBoundingBox", ( assert ) => {
 
 			var a = new DodecahedronGeometry();