blob: 40a166b3dd8b1bfdfef32fc25aa776e1892f2aee [file] [log] [blame]
Test that seeking a paused video past its end sets currentTime to duration and leaves the video paused.
EVENT(canplaythrough)
EXPECTED (video.paused == 'true') OK
EXPECTED (video.ended == 'false') OK
RUN(video.play())
EXPECTED (video.paused == 'false') OK
EXPECTED (mediaElement.currentTime > '0') OK
EXPECTED (video.paused == 'true') OK
EXPECTED (video.paused == 'true') OK
EXPECTED (mediaElement.currentTime == 'mediaElement.duration') OK
EXPECTED (video.ended == 'true') OK
END OF TEST