blob: 94c50ac8836dd54100e3518cfd0e238a66a8eeb4 [file] [log] [blame]
Test that seeking attribute is true immediately after a seek, goes back to false when seeking completes, and that a 'seeked' event is fired for each seek
EVENT(canplaythrough)
RUN(video.currentTime = 0.5)
EVENT(seeked)
EXPECTED (video.seeking == 'false') OK
EXPECTED (video.currentTime == '0.5') OK
RUN(video.currentTime = 1)
EXPECTED (video.seeking == 'true') OK
EVENT(seeked)
EXPECTED (video.seeking == 'false') OK
EXPECTED (video.currentTime == '1') OK
RUN(video.currentTime = 1.5)
EXPECTED (video.seeking == 'true') OK
EVENT(seeked)
EXPECTED (video.seeking == 'false') OK
EXPECTED (video.currentTime == '1.5') OK
END OF TEST