File tree Expand file tree Collapse file tree 3 files changed +8
-14
lines changed
Expand file tree Collapse file tree 3 files changed +8
-14
lines changed Original file line number Diff line number Diff 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" ) ;
Original file line number Diff line number Diff 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
5757test ( "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
6969test ( "center" , function ( ) {
Original file line number Diff line number Diff 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
5757test ( "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
6969test ( "center" , function ( ) {
You can’t perform that action at this time.
0 commit comments