浏览代码

Merge pull request #12780 from OndrejSpanel/animationTestFix

Fixed: animation test
Mr.doob 7 年之前
父节点
当前提交
e844e09bbe
共有 1 个文件被更改,包括 1 次插入21 次删除
  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" );