File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -440,4 +440,22 @@ suite('player', function() {
440440 p . currentTime = undefined ;
441441 assert . equal ( p . currentTime , 10 ) ;
442442 } ) ;
443+ test ( 'play() should not set a start time' , function ( ) {
444+ var p = document . body . animate ( [ ] , 1000 ) ;
445+ p . cancel ( ) ;
446+ assert . equal ( p . startTime , null ) ;
447+ assert . equal ( p . playState , 'idle' ) ;
448+ p . play ( ) ;
449+ assert . equal ( p . startTime , null ) ;
450+ assert . equal ( p . playState , 'pending' ) ;
451+ } ) ;
452+ test ( 'reverse() should not set a start time' , function ( ) {
453+ var p = document . body . animate ( [ ] , 1000 ) ;
454+ p . cancel ( ) ;
455+ assert . equal ( p . startTime , null ) ;
456+ assert . equal ( p . playState , 'idle' ) ;
457+ p . reverse ( ) ;
458+ assert . equal ( p . startTime , null ) ;
459+ assert . equal ( p . playState , 'pending' ) ;
460+ } ) ;
443461} ) ;
You can’t perform that action at this time.
0 commit comments