2
0
Эх сурвалжийг харах

Added test for AnimationMixer's getRoot().

Wouter Vanmontfort 5 жил өмнө
parent
commit
2ca090e605

+ 4 - 2
test/unit/src/animation/AnimationMixer.tests.js

@@ -96,9 +96,11 @@ export default QUnit.module( 'Animation', () => {
 
 		} );
 
-		QUnit.todo( "getRoot", ( assert ) => {
+		QUnit.test( "getRoot", ( assert ) => {
 
-			assert.ok( false, "everything's gonna be alright" );
+			const obj = new Object3D();
+			const animMixer = new AnimationMixer( obj );
+			assert.strictEqual( obj, animMixer.getRoot(), "Get original root object" );
 
 		} );