Procházet zdrojové kódy

Merge pull request #12780 from OndrejSpanel/animationTestFix

Fixed: animation test
Mr.doob před 7 roky
rodič
revize
e844e09bbe
1 změnil soubory, kde provedl 1 přidání a 21 odebrání
  1. 1 21
      test/unit/src/animation/AnimationAction.tests.js

+ 1 - 21
test/unit/src/animation/AnimationAction.tests.js

@@ -15,27 +15,7 @@ export default QUnit.module( 'Animation', () => {
 		QUnit.test( "Instancing", ( assert ) => {
 
 			var mixer = new AnimationMixer();
-			var clip = new AnimationClip();
-
-			assert.throws(
-				function () {
-
-					new AnimationAction();
-
-				},
-				new Error( "Mixer can't be null or undefined !" ),
-				"raised error instance about undefined or null mixer"
-			);
-
-			assert.throws(
-				function () {
-
-					new AnimationAction( mixer );
-
-				},
-				new Error( "Clip can't be null or undefined !" ),
-				"raised error instance about undefined or null clip"
-			);
+			var clip = new AnimationClip( "nonname", - 1, [] );
 
 			var animationAction = new AnimationAction( mixer, clip );
 			assert.ok( animationAction, "animationAction instanciated" );