浏览代码

Merge pull request #21022 from Mugen87/dev2

Test: Clean up.
Mr.doob 4 年之前
父节点
当前提交
5705737e72
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      test/unit/src/core/Geometry.tests.js

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

@@ -4,7 +4,7 @@ import { Geometry } from '../../../../src/core/Geometry';
 import { BufferAttribute } from '../../../../src/core/BufferAttribute';
 import { BufferGeometry } from '../../../../src/core/BufferGeometry';
 import { BoxBufferGeometry } from '../../../../src/geometries/BoxBufferGeometry';
-import { DodecahedronGeometry } from '../../../../src/geometries/DodecahedronGeometry';
+import { DodecahedronBufferGeometry } from '../../../../src/geometries/DodecahedronBufferGeometry';
 import { Vector3 } from '../../../../src/math/Vector3';
 import { Matrix4 } from '../../../../src/math/Matrix4';
 import { Face3 } from '../../../../src/core/Face3';
@@ -320,7 +320,7 @@ export default QUnit.module( 'Core', () => {
 
 		QUnit.test( "computeBoundingBox", ( assert ) => {
 
-			var a = new DodecahedronGeometry();
+			var a = new Geometry().fromBufferGeometry( new DodecahedronBufferGeometry() );
 
 			a.computeBoundingBox();
 			assert.strictEqual( a.boundingBox.isEmpty(), false, "Bounding box isn't empty" );
@@ -341,7 +341,7 @@ export default QUnit.module( 'Core', () => {
 
 		QUnit.test( "computeBoundingSphere", ( assert ) => {
 
-			var a = new DodecahedronGeometry();
+			var a = new Geometry().fromBufferGeometry( new DodecahedronBufferGeometry() );
 
 			a.computeBoundingSphere();