blob: d3f0c33dae6ed5a38ed0c5dc6989be8f6772b5c6 [file] [log] [blame]
Test that cues from in-band tracks are displayed immediately when a track is made visible.
EVENT(canplaythrough)
** Check initial in-band track states
RUN(inbandTrack1 = video.textTracks[0])
EXPECTED (video.textTracks.length == '1') OK
EXPECTED (inbandTrack1.language == 'en') OK
EXPECTED (inbandTrack1.kind == 'captions') OK
** A hidden track should not have visible cues
RUN(inbandTrack1.mode = 'hidden')
EXPECTED (inbandTrack1.activeCues.length == '0') OK
RUN(video.play())
EVENT(seeked)
** Showing a track should show active cues immediately
RUN(inbandTrack1.mode = 'showing')
EXPECTED (inbandTrack1.activeCues.length == '1') OK
END OF TEST