Browse Source

Fixed unit tests.

Mr.doob 4 years ago
parent
commit
1c3b2b4631

+ 1 - 1
test/unit/example/exporters/GLTFExporter.tests.js

@@ -3,7 +3,7 @@
 import { GLTFExporter } from '../../../../examples/jsm/exporters/GLTFExporter';
 
 import { AnimationClip } from '../../../../src/animation/AnimationClip';
-import { BoxBufferGeometry } from '../../../../src/geometries/BoxGeometry';
+import { BoxBufferGeometry } from '../../../../src/geometries/BoxBufferGeometry';
 import { BufferAttribute } from '../../../../src/core/BufferAttribute';
 import { BufferGeometry } from '../../../../src/core/BufferGeometry';
 import { Mesh } from '../../../../src/objects/Mesh';

+ 1 - 1
test/unit/src/core/Geometry.tests.js

@@ -3,7 +3,7 @@
 import { Geometry } from '../../../../src/core/Geometry';
 import { BufferAttribute } from '../../../../src/core/BufferAttribute';
 import { BufferGeometry } from '../../../../src/core/BufferGeometry';
-import { BoxBufferGeometry } from '../../../../src/geometries/BoxGeometry';
+import { BoxBufferGeometry } from '../../../../src/geometries/BoxBufferGeometry';
 import { DodecahedronGeometry } from '../../../../src/geometries/DodecahedronGeometry';
 import { Vector3 } from '../../../../src/math/Vector3';
 import { Matrix4 } from '../../../../src/math/Matrix4';

+ 1 - 3
test/unit/src/geometries/BoxGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	BoxBufferGeometry
-} from '../../../../src/geometries/BoxGeometry';
+import { BoxBufferGeometry } from '../../../../src/geometries/BoxBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/CircleGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	CircleBufferGeometry
-} from '../../../../src/geometries/CircleGeometry';
+import { CircleBufferGeometry } from '../../../../src/geometries/CircleBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/ConeGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	ConeBufferGeometry
-} from '../../../../src/geometries/ConeGeometry';
+import { ConeBufferGeometry } from '../../../../src/geometries/ConeBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/CylinderGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	CylinderBufferGeometry
-} from '../../../../src/geometries/CylinderGeometry';
+import { CylinderBufferGeometry } from '../../../../src/geometries/CylinderBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/DodecahedronGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	DodecahedronBufferGeometry
-} from '../../../../src/geometries/DodecahedronGeometry';
+import { DodecahedronBufferGeometry } from '../../../../src/geometries/DodecahedronBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 1
test/unit/src/geometries/ExtrudeGeometry.tests.js

@@ -1,6 +1,6 @@
 /* global QUnit */
 
-import { ExtrudeBufferGeometry } from '../../../../src/geometries/ExtrudeGeometry';
+import { ExtrudeBufferGeometry } from '../../../../src/geometries/ExtrudeBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/IcosahedronGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	IcosahedronBufferGeometry
-} from '../../../../src/geometries/IcosahedronGeometry';
+import { IcosahedronBufferGeometry } from '../../../../src/geometries/IcosahedronBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/LatheGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	LatheBufferGeometry
-} from '../../../../src/geometries/LatheGeometry';
+import { LatheBufferGeometry } from '../../../../src/geometries/LatheBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/OctahedronGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	OctahedronBufferGeometry
-} from '../../../../src/geometries/OctahedronGeometry';
+import { OctahedronBufferGeometry } from '../../../../src/geometries/OctahedronBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/ParametricGeometry.tests.js

@@ -1,8 +1,6 @@
 /* global QUnit */
 
-import {
-	ParametricBufferGeometry
-} from '../../../../src/geometries/ParametricGeometry';
+import { ParametricBufferGeometry } from '../../../../src/geometries/ParametricBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/PlaneGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	PlaneBufferGeometry
-} from '../../../../src/geometries/PlaneGeometry';
+import { PlaneBufferGeometry } from '../../../../src/geometries/PlaneBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/PolyhedronGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	PolyhedronBufferGeometry
-} from '../../../../src/geometries/PolyhedronGeometry';
+import { PolyhedronBufferGeometry } from '../../../../src/geometries/PolyhedronBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/RingGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	RingBufferGeometry
-} from '../../../../src/geometries/RingGeometry';
+import { RingBufferGeometry } from '../../../../src/geometries/RingBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/ShapeGeometry.tests.js

@@ -1,8 +1,6 @@
 /* global QUnit */
 
-import {
-	ShapeBufferGeometry
-} from '../../../../src/geometries/ShapeGeometry';
+import { ShapeBufferGeometry } from '../../../../src/geometries/ShapeBufferGeometry';
 
 import { Shape } from '../../../../src/extras/core/Shape';
 

+ 1 - 3
test/unit/src/geometries/SphereGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	SphereBufferGeometry
-} from '../../../../src/geometries/SphereGeometry';
+import { SphereBufferGeometry } from '../../../../src/geometries/SphereBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/TetrahedronGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	TetrahedronBufferGeometry
-} from '../../../../src/geometries/TetrahedronGeometry';
+import { TetrahedronBufferGeometry } from '../../../../src/geometries/TetrahedronBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/TextGeometry.tests.js

@@ -1,8 +1,6 @@
 /* global QUnit */
 
-import {
-	TextBufferGeometry
-} from '../../../../src/geometries/TextGeometry';
+import { TextBufferGeometry } from '../../../../src/geometries/TextBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/TorusGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	TorusBufferGeometry
-} from '../../../../src/geometries/TorusGeometry';
+import { TorusBufferGeometry } from '../../../../src/geometries/TorusBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/TorusKnotGeometry.tests.js

@@ -1,9 +1,7 @@
 /* global QUnit */
 
 import { runStdGeometryTests } from '../../utils/qunit-utils';
-import {
-	TorusKnotBufferGeometry
-} from '../../../../src/geometries/TorusKnotGeometry';
+import { TorusKnotBufferGeometry } from '../../../../src/geometries/TorusKnotBufferGeometry';
 
 export default QUnit.module( 'Geometries', () => {
 

+ 1 - 3
test/unit/src/geometries/TubeGeometry.tests.js

@@ -1,8 +1,6 @@
 /* global QUnit */
 
-import {
-	TubeBufferGeometry
-} from '../../../../src/geometries/TubeGeometry';
+import { TubeBufferGeometry } from '../../../../src/geometries/TubeBufferGeometry';
 
 import { LineCurve3 } from '../../../../src/extras/curves/LineCurve3';
 import { Vector3 } from '../../../../src/math/Vector3';

+ 2 - 4
test/unit/src/math/Box3.tests.js

@@ -8,10 +8,8 @@ import { Vector3 } from '../../../../src/math/Vector3';
 import { Matrix4 } from '../../../../src/math/Matrix4';
 import { Mesh } from '../../../../src/objects/Mesh';
 import { BufferAttribute } from '../../../../src/core/BufferAttribute';
-import {
-	BoxGeometry,
-	BoxBufferGeometry
-} from '../../../../src/geometries/BoxGeometry';
+import { BoxGeometry } from '../../../../src/geometries/BoxGeometry';
+import { BoxBufferGeometry } from '../../../../src/geometries/BoxBufferGeometry';
 import {
 	negInf3,
 	posInf3,