haikuwebkit/LayoutTests/media/media-controller-time-clamp...

12 lines
295 B
Plaintext

RUN(controller = video.controller)
EVENT(canplaythrough)
RUN(controller.currentTime = controller.duration - 0.05)
RUN(video.play())
RUN(controller.play())
EVENT(ended)
EXPECTED (controller.currentTime > '0') OK
EXPECTED (controller.currentTime <= controller.duration == 'true') OK
END OF TEST