|
@@ -8,7 +8,6 @@ import { NumberKeyframeTrack } from '../../../../src/animation/tracks/NumberKeyf
|
|
|
import { Object3D } from '../../../../src/core/Object3D.js';
|
|
import { Object3D } from '../../../../src/core/Object3D.js';
|
|
|
import { LoopOnce, LoopRepeat, LoopPingPong } from '../../../../src/constants.js';
|
|
import { LoopOnce, LoopRepeat, LoopPingPong } from '../../../../src/constants.js';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
function createAnimation() {
|
|
function createAnimation() {
|
|
|
|
|
|
|
|
const root = new Object3D();
|
|
const root = new Object3D();
|
|
@@ -52,7 +51,6 @@ function createTwoAnimations() {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
export default QUnit.module( 'Animation', () => {
|
|
export default QUnit.module( 'Animation', () => {
|
|
|
|
|
|
|
|
QUnit.module( 'AnimationAction', () => {
|
|
QUnit.module( 'AnimationAction', () => {
|
|
@@ -68,73 +66,6 @@ export default QUnit.module( 'Animation', () => {
|
|
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
- // PROPERTIES
|
|
|
|
|
- QUnit.todo( 'blendMode', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'loop', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'time', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'timeScale', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'weight', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'repetitions', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'paused', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'enabled', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'clampWhenFinished', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'zeroSlopeAtStart', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'zeroSlopeAtEnd', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
// PUBLIC STUFF
|
|
// PUBLIC STUFF
|
|
|
QUnit.test( 'play', ( assert ) => {
|
|
QUnit.test( 'play', ( assert ) => {
|
|
|
|
|
|
|
@@ -239,7 +170,6 @@ export default QUnit.module( 'Animation', () => {
|
|
|
animationAction.stop();
|
|
animationAction.stop();
|
|
|
assert.notOk( animationAction.isScheduled(), 'When an animation is stopped, it isn\'t scheduled anymore.' );
|
|
assert.notOk( animationAction.isScheduled(), 'When an animation is stopped, it isn\'t scheduled anymore.' );
|
|
|
|
|
|
|
|
-
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
QUnit.test( 'startAt', ( assert ) => {
|
|
QUnit.test( 'startAt', ( assert ) => {
|
|
@@ -259,7 +189,6 @@ export default QUnit.module( 'Animation', () => {
|
|
|
assert.notOk( animationAction.isRunning(), 'When an animation is stopped, it is not running.' );
|
|
assert.notOk( animationAction.isRunning(), 'When an animation is stopped, it is not running.' );
|
|
|
assert.notOk( animationAction.isScheduled(), 'When an animation is stopped, it is not scheduled.' );
|
|
assert.notOk( animationAction.isScheduled(), 'When an animation is stopped, it is not scheduled.' );
|
|
|
|
|
|
|
|
-
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
QUnit.test( 'setLoop LoopOnce', ( assert ) => {
|
|
QUnit.test( 'setLoop LoopOnce', ( assert ) => {
|
|
@@ -357,7 +286,6 @@ export default QUnit.module( 'Animation', () => {
|
|
|
animationAction.setEffectiveWeight( 0.3 );
|
|
animationAction.setEffectiveWeight( 0.3 );
|
|
|
assert.equal( animationAction.getEffectiveWeight(), 0.3, 'When EffectiveWeight is set to 0.3 , EffectiveWeight is 0.3.' );
|
|
assert.equal( animationAction.getEffectiveWeight(), 0.3, 'When EffectiveWeight is set to 0.3 , EffectiveWeight is 0.3.' );
|
|
|
|
|
|
|
|
-
|
|
|
|
|
( { animationAction } = createAnimation() );
|
|
( { animationAction } = createAnimation() );
|
|
|
assert.equal( animationAction.getEffectiveWeight(), 1, 'When an animation is created, EffectiveWeight is 1.' );
|
|
assert.equal( animationAction.getEffectiveWeight(), 1, 'When an animation is created, EffectiveWeight is 1.' );
|
|
|
animationAction.enabled = false;
|
|
animationAction.enabled = false;
|
|
@@ -446,54 +374,6 @@ export default QUnit.module( 'Animation', () => {
|
|
|
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
- QUnit.todo( 'stopFading', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'setEffectiveTimeScale', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'getEffectiveTimeScale', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'setDuration', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'syncWith', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'halt', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'warp', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
- QUnit.todo( 'stopWarping', ( assert ) => {
|
|
|
|
|
-
|
|
|
|
|
- assert.ok( false, 'everything\'s gonna be alright' );
|
|
|
|
|
-
|
|
|
|
|
- } );
|
|
|
|
|
-
|
|
|
|
|
QUnit.test( 'getMixer', ( assert ) => {
|
|
QUnit.test( 'getMixer', ( assert ) => {
|
|
|
|
|
|
|
|
const { mixer, animationAction } = createAnimation();
|
|
const { mixer, animationAction } = createAnimation();
|