Change fast seek logic to prevent ping-ponging.
[WebKit-https.git] / LayoutTests / media / video-fast-seek-expected.txt
1
2 Test that fastSeek() commands work correctly.
3
4 EVENT(canplaythrough)
5 Seek past the 4th sync sample:
6 RUN(video.currentTime = 2.5)
7 EVENT(timeupdate)
8 EXPECTED (video.currentTime.toFixed(1) == '2.5') OK
9 Test that fastSeek() past the currentTime will not result in a seek before the currentTime or past the seek time:
10 RUN(video.fastSeek(2.6))
11 EVENT(timeupdate)
12 EXPECTED (video.currentTime <= '2.6') OK
13 EXPECTED (video.currentTime >= '2.5') OK
14 Seek before the 4th sync sample:
15 RUN(video.currentTime = 2.3)
16 EVENT(timeupdate)
17 EXPECTED (video.currentTime.toFixed(1) == '2.3') OK
18 Test that fastSeek() before the currentTime will not result in a seek past the seek time:
19 RUN(video.fastSeek(2.2))
20 EVENT(timeupdate)
21 EXPECTED (video.currentTime <= '2.2') OK
22 END OF TEST
23