|
@@ -296,7 +296,7 @@ export default QUnit.module( 'Core', () => {
|
|
|
|
|
|
} );
|
|
|
|
|
|
- QUnit.test( "add/remove/removeAll", ( assert ) => {
|
|
|
+ QUnit.test( "add/remove/clear", ( assert ) => {
|
|
|
|
|
|
var a = new Object3D();
|
|
|
var child1 = new Object3D();
|
|
@@ -330,7 +330,7 @@ export default QUnit.module( 'Core', () => {
|
|
|
|
|
|
a.add( child1 );
|
|
|
assert.strictEqual( a.children.length, 2, "The first child was added to the parent" );
|
|
|
- a.removeAll();
|
|
|
+ a.clear();
|
|
|
assert.strictEqual( a.children.length, 0, "All childrens were removed" );
|
|
|
assert.strictEqual( child1.parent, null, "First child has no parent" );
|
|
|
assert.strictEqual( child2.parent, null, "Second child has no parent" );
|