blob: 377117196a37e7461b6854df3e0c5170a5666ee2 [file] [log] [blame]
EXPECTED (source.readyState == 'closed') OK
EVENT(sourceopen)
RUN(sourceBuffer = source.addSourceBuffer("video/mock; codecs=mock"))
RUN(sourceBuffer.appendBuffer(initSegment))
EVENT(updateend)
RUN(sourceBuffer.appendBuffer(samples))
EVENT(updateend)
RUN(source.duration = 8)
RUN(source.endOfStream())
RUN(video.currentTime = 1)
EVENT(seeked)
EXPECTED (video.currentTime.toFixed(1) == '1') OK
RUN(video.fastSeek(5))
EVENT(seeked)
EXPECTED (video.currentTime.toFixed(1) == '4') OK
RUN(video.currentTime = 3)
EVENT(seeked)
EXPECTED (video.currentTime.toFixed(1) == '3') OK
RUN(video.fastSeek(2))
EVENT(seeked)
EXPECTED (video.currentTime.toFixed(1) == '0') OK
END OF TEST