Change fast seek logic to prevent ping-ponging.
[WebKit-https.git] / LayoutTests / media / media-source / media-source-fastseek-expected.txt
1
2 EXPECTED (source.readyState == 'closed') OK
3 EVENT(sourceopen)
4 RUN(sourceBuffer = source.addSourceBuffer("video/mock; codecs=mock"))
5 RUN(sourceBuffer.appendBuffer(initSegment))
6 EVENT(updateend)
7 RUN(sourceBuffer.appendBuffer(samples))
8 EVENT(updateend)
9 RUN(source.duration = 8)
10 RUN(source.endOfStream())
11 RUN(video.currentTime = 1)
12 EVENT(seeked)
13 EXPECTED (video.currentTime.toFixed(1) == '1') OK
14 RUN(video.fastSeek(5))
15 EVENT(seeked)
16 EXPECTED (video.currentTime.toFixed(1) == '4') OK
17 RUN(video.currentTime = 3)
18 EVENT(seeked)
19 EXPECTED (video.currentTime.toFixed(1) == '3') OK
20 RUN(video.fastSeek(2))
21 EVENT(seeked)
22 EXPECTED (video.currentTime.toFixed(1) == '0') OK
23 END OF TEST
24