@@ -183,7 +183,7 @@ suite('group-player', function() {
183183 test ( 'playing an animationGroup works as expected' , function ( ) {
184184 tick ( 90 ) ;
185185 var p = document . timeline . play ( simpleAnimationGroup ( ) ) ;
186- checkTimes ( p , [ null , 0 ] , [ ] ) ;
186+ checkTimes ( p , [ null , 0 ] , [ [ null , 0 ] , [ null , 0 ] , [ null , 0 ] ] ) ;
187187 tick ( 100 ) ;
188188 checkTimes ( p , [ 100 , 0 ] , [ [ 100 , 0 ] , [ 100 , 0 ] , [ 100 , 0 ] ] ) ;
189189 tick ( 300 ) ;
@@ -547,6 +547,35 @@ suite('group-player', function() {
547547 checkTimes ( player , [ 101 , 599 ] , [ [ 101 , 500 ] , [ 601 , 99 ] ] , 't = 700' ) ;
548548 } ) ;
549549
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+
550579 test ( 'pausing works as expected with an AnimationSequence inside an AnimationSequence' , function ( ) {
551580 var player = document . timeline . play ( this . seqWithSeq_source ) ;
552581 tick ( 0 ) ;
0 commit comments