blob: b53c5c8698ebdc73e0e12de1e7d5a0f5d2d483c1 [file] [log] [blame]
Test that setting currentTime changes the time, and that 'ended' event is fired in a reasonable amount of time
EVENT(canplaythrough)
EXPECTED (video.currentTime == '0') OK
RUN(video.currentTime = video.duration - 0.2)
EVENT(seeked)
EXPECTED (video.currentTime.toFixed(2) == '5.83') OK
RUN(video.play())
EVENT(ended)
END OF TEST