blob: 45ca0e329390a6a5b9d472c66c464a09f1f608f1 [file] [log] [blame]
RUN(video.play())
EVENT(addtrack)
EXPECTED (video.textTracks.length == '1') OK
RUN(video.textTracks[0].mode = 'showing')
EVENT(cuechange)
EXPECTED (video.textTracks[0].activeCues.length == '1') OK
EXPECTED (video.textTracks[0].activeCues[0].text == 'Subtitle Test') OK
RUN(video.currentTime = 9.5)
EVENT(ended)
RUN(video.currentTime = 0)
RUN(video.play())
EVENT(cuechange)
EXPECTED (video.textTracks[0].activeCues.length == '1') OK
EXPECTED (video.textTracks[0].activeCues[0].text == 'Subtitle Test') OK
END OF TEST