blob: 48cf561ebe90bd4debd3a0f4ca852a48133651b8 [file] [log] [blame]
Tests that duration is not set to zero when playing in reverse to the origin.
EVENT(canplaythrough)
EXPECTED (video.duration > '0') OK
EXPECTED (video.currentTime == '0') OK
RUN(video.currentTime = 0.3)
EVENT(seeked)
EXPECTED (video.currentTime.toFixed(1) == '0.3') OK
RUN(video.play())
RUN(video.playbackRate = -1)
EXPECTED (video.duration > '0') OK
END OF TEST