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() {
174
174
ok ( bb . max . x === 13 && bb . max . y === 5 && bb . max . z === 6 , "max values are set correctly" ) ;
175
175
176
176
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
-
183
177
bb = getBBForVertices ( [ - 1 , - 1 , - 1 ] ) ;
184
178
185
179
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() {
51
51
ok ( a . max . equals ( one2 ) , "Passed!" ) ;
52
52
53
53
a . setFromPoints ( [ ] ) ;
54
- ok ( a . empty ( ) , "Passed!" ) ;
54
+ ok ( a . isEmpty ( ) , "Passed!" ) ;
55
55
} ) ;
56
56
57
57
test ( "empty/makeEmpty" , function ( ) {
58
58
var a = new THREE . Box2 ( ) ;
59
59
60
- ok ( a . empty ( ) , "Passed!" ) ;
60
+ ok ( a . isEmpty ( ) , "Passed!" ) ;
61
61
62
62
var a = new THREE . Box2 ( zero2 . clone ( ) , one2 . clone ( ) ) ;
63
- ok ( ! a . empty ( ) , "Passed!" ) ;
63
+ ok ( ! a . isEmpty ( ) , "Passed!" ) ;
64
64
65
65
a . makeEmpty ( ) ;
66
- ok ( a . empty ( ) , "Passed!" ) ;
66
+ ok ( a . isEmpty ( ) , "Passed!" ) ;
67
67
} ) ;
68
68
69
69
test ( "center" , function ( ) {
Original file line number Diff line number Diff line change @@ -51,19 +51,19 @@ test( "setFromPoints", function() {
51
51
ok ( a . max . equals ( one3 ) , "Passed!" ) ;
52
52
53
53
a . setFromPoints ( [ ] ) ;
54
- ok ( a . empty ( ) , "Passed!" ) ;
54
+ ok ( a . isEmpty ( ) , "Passed!" ) ;
55
55
} ) ;
56
56
57
57
test ( "empty/makeEmpty" , function ( ) {
58
58
var a = new THREE . Box3 ( ) ;
59
59
60
- ok ( a . empty ( ) , "Passed!" ) ;
60
+ ok ( a . isEmpty ( ) , "Passed!" ) ;
61
61
62
62
var a = new THREE . Box3 ( zero3 . clone ( ) , one3 . clone ( ) ) ;
63
- ok ( ! a . empty ( ) , "Passed!" ) ;
63
+ ok ( ! a . isEmpty ( ) , "Passed!" ) ;
64
64
65
65
a . makeEmpty ( ) ;
66
- ok ( a . empty ( ) , "Passed!" ) ;
66
+ ok ( a . isEmpty ( ) , "Passed!" ) ;
67
67
} ) ;
68
68
69
69
test ( "center" , function ( ) {
You can’t perform that action at this time.
0 commit comments