@@ -183,7 +183,7 @@ suite('group-player', function() {
183
183
test ( 'playing an animationGroup works as expected' , function ( ) {
184
184
tick ( 90 ) ;
185
185
var p = document . timeline . play ( simpleAnimationGroup ( ) ) ;
186
- checkTimes ( p , [ null , 0 ] , [ ] ) ;
186
+ checkTimes ( p , [ null , 0 ] , [ [ null , 0 ] , [ null , 0 ] , [ null , 0 ] ] ) ;
187
187
tick ( 100 ) ;
188
188
checkTimes ( p , [ 100 , 0 ] , [ [ 100 , 0 ] , [ 100 , 0 ] , [ 100 , 0 ] ] ) ;
189
189
tick ( 300 ) ;
@@ -547,6 +547,35 @@ suite('group-player', function() {
547
547
checkTimes ( player , [ 101 , 599 ] , [ [ 101 , 500 ] , [ 601 , 99 ] ] , 't = 700' ) ;
548
548
} ) ;
549
549
550
+ test ( 'pausing before tick works as expected with a simple AnimationSequence' , function ( ) {
551
+ var player = document . timeline . play ( this . seqSimple_source ) ;
552
+ checkTimes ( player , [ null , 0 ] , [ [ null , 0 ] , [ null , - 500 ] ] , 't = 0' ) ;
553
+
554
+ player . pause ( ) ;
555
+ checkTimes ( player , [ null , null ] , [ [ null , null ] , [ null , null ] ] , 't = 0' ) ;
556
+
557
+ tick ( 10 ) ;
558
+ checkTimes ( player , [ null , 0 ] , [ [ null , 0 ] , [ null , - 500 ] ] , 't = 10' ) ;
559
+ } ) ;
560
+
561
+ test ( 'pausing and seeking before tick works as expected with a simple AnimationSequence' , function ( ) {
562
+ var player = document . timeline . play ( this . seqSimple_source ) ;
563
+ player . pause ( ) ;
564
+
565
+ player . currentTime = 0 ;
566
+ checkTimes ( player , [ null , 0 ] , [ [ null , 0 ] , [ null , - 500 ] ] , 't = 10' ) ;
567
+
568
+ player . currentTime = 250 ;
569
+ checkTimes ( player , [ null , 250 ] , [ [ null , 250 ] , [ null , - 250 ] ] , 't = 10' ) ;
570
+
571
+ player . currentTime = 500 ;
572
+ checkTimes ( player , [ null , 500 ] , [ [ null , 500 ] , [ null , 0 ] ] , 't = 10' ) ;
573
+
574
+ // FIXME: Expectation should be [null, 1000], [[null, 500], [null, 500]].
575
+ player . currentTime = 1000 ;
576
+ checkTimes ( player , [ null , 1000 ] , [ [ null , 1000 ] , [ null , 500 ] ] , 't = 10' ) ;
577
+ } ) ;
578
+
550
579
test ( 'pausing works as expected with an AnimationSequence inside an AnimationSequence' , function ( ) {
551
580
var player = document . timeline . play ( this . seqWithSeq_source ) ;
552
581
tick ( 0 ) ;
0 commit comments