Skip to content

Commit 315ba26

Browse files
author
Don McCurdy
committed
Fix tests.
1 parent ce0d2a8 commit 315ba26

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/unit/src/animation/AnimationUtils.tests.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
*/
44
/* global QUnit */
55

6+
import { AnimationClip } from '../../../../src/animation/AnimationClip';
67
import { AnimationUtils } from '../../../../src/animation/AnimationUtils';
8+
import { BufferAttribute } from '../../../../src/core/BufferAttribute';
9+
import { BufferGeometry } from '../../../../src/core/BufferGeometry';
10+
import { Mesh } from '../../../../src/objects/Mesh';
11+
import { Object3D } from '../../../../src/core/Object3D';
712
import { NumberKeyframeTrack } from '../../../../src/animation/tracks/NumberKeyframeTrack';
813
import { VectorKeyframeTrack } from '../../../../src/animation/tracks/VectorKeyframeTrack';
914
import {
@@ -86,20 +91,20 @@ export default QUnit.module( 'Animation', () => {
8691
InterpolateLinear
8792
);
8893

89-
var geometry = new THREE.BufferGeometry();
90-
var position = new THREE.BufferAttribute( new Float32Array( [ 0, 0, 0, 0, 0, 1, 1, 0, 1 ] ), 3 );
94+
var geometry = new BufferGeometry();
95+
var position = new BufferAttribute( new Float32Array( [ 0, 0, 0, 0, 0, 1, 1, 0, 1 ] ), 3 );
9196
geometry.addAttribute( 'position', position );
9297
geometry.morphAttributes.position = [ position, position ];
9398

94-
var mesh = new THREE.Mesh( geometry );
99+
var mesh = new Mesh( geometry );
95100
mesh.name = 'foo';
96101
mesh.morphTargetDictionary.a = 0;
97102
mesh.morphTargetDictionary.b = 1;
98103

99-
var root = new THREE.Object3D();
104+
var root = new Object3D();
100105
root.add( mesh );
101106

102-
var clip = new THREE.AnimationClip( 'waltz', undefined, [ trackA, trackB ] );
107+
var clip = new AnimationClip( 'waltz', undefined, [ trackA, trackB ] );
103108
clip = AnimationUtils.mergeMorphTargetTracks( clip, root );
104109

105110
assert.equal( clip.tracks.length, 1, 'tracks are merged' );

0 commit comments

Comments
 (0)