Procházet zdrojové kódy

Added test for AnimationMixer's getRoot().

Wouter Vanmontfort před 5 roky
rodič
revize
2ca090e605
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      test/unit/src/animation/AnimationMixer.tests.js

+ 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" );
 
 		} );