blob: 2921dc9fae510db603f4f5c3e391f02861c38aa4 [file] [log] [blame]
Test that fastSeek() commands work correctly.
EVENT(canplaythrough)
Seek past the 4th sync sample:
RUN(video.currentTime = 2.5)
EVENT(timeupdate)
EXPECTED (video.currentTime.toFixed(1) == '2.5') OK
Test that fastSeek() past the currentTime will not result in a seek before the currentTime:
RUN(video.fastSeek(2.6))
EVENT(timeupdate)
EXPECTED (video.currentTime >= '2.6') OK
Seek before the 4th sync sample:
RUN(video.currentTime = 2.3)
EVENT(timeupdate)
EXPECTED (video.currentTime.toFixed(1) == '2.3') OK
Test that fastSeek() before the currentTime will not result in a seek past the currentTime:
RUN(video.fastSeek(2.2))
EVENT(timeupdate)
EXPECTED (video.currentTime <= '2.2') OK
END OF TEST