Skip to content

Commit 741724f

Browse files
committed
Fixed tests.
1 parent caac14f commit 741724f

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

test/unit/core/BufferGeometry.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,6 @@ test( "computeBoundingBox", function() {
174174
ok( bb.max.x === 13 && bb.max.y === 5 && bb.max.z === 6, "max values are set correctly" );
175175

176176

177-
bb = getBBForVertices( [] );
178-
179-
ok( bb.min.x === 0 && bb.min.y === 0 && bb.min.z === 0, "since there are no values given, the bb has size = 0" );
180-
ok( bb.max.x === 0 && bb.max.y === 0 && bb.max.z === 0, "since there are no values given, the bb has size = 0" );
181-
182-
183177
bb = getBBForVertices( [-1, -1, -1] );
184178

185179
ok( bb.min.x === bb.max.x && bb.min.y === bb.max.y && bb.min.z === bb.max.z, "since there is only one vertex, max and min are equal" );

test/unit/math/Box2.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ test( "setFromPoints", function() {
5151
ok( a.max.equals( one2 ), "Passed!" );
5252

5353
a.setFromPoints( [] );
54-
ok( a.empty(), "Passed!" );
54+
ok( a.isEmpty(), "Passed!" );
5555
});
5656

5757
test( "empty/makeEmpty", function() {
5858
var a = new THREE.Box2();
5959

60-
ok( a.empty(), "Passed!" );
60+
ok( a.isEmpty(), "Passed!" );
6161

6262
var a = new THREE.Box2( zero2.clone(), one2.clone() );
63-
ok( ! a.empty(), "Passed!" );
63+
ok( ! a.isEmpty(), "Passed!" );
6464

6565
a.makeEmpty();
66-
ok( a.empty(), "Passed!" );
66+
ok( a.isEmpty(), "Passed!" );
6767
});
6868

6969
test( "center", function() {

test/unit/math/Box3.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ test( "setFromPoints", function() {
5151
ok( a.max.equals( one3 ), "Passed!" );
5252

5353
a.setFromPoints( [] );
54-
ok( a.empty(), "Passed!" );
54+
ok( a.isEmpty(), "Passed!" );
5555
});
5656

5757
test( "empty/makeEmpty", function() {
5858
var a = new THREE.Box3();
5959

60-
ok( a.empty(), "Passed!" );
60+
ok( a.isEmpty(), "Passed!" );
6161

6262
var a = new THREE.Box3( zero3.clone(), one3.clone() );
63-
ok( ! a.empty(), "Passed!" );
63+
ok( ! a.isEmpty(), "Passed!" );
6464

6565
a.makeEmpty();
66-
ok( a.empty(), "Passed!" );
66+
ok( a.isEmpty(), "Passed!" );
6767
});
6868

6969
test( "center", function() {

0 commit comments

Comments
 (0)