|
@@ -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" );
|