blob: 78f3167b4b6b562028314baed64b072b0a6eee28 [file] [log] [blame]
In-band text tracks.
EVENT(addtrack)
EXPECTED (event.track == 'video.textTracks[0]') OK
EVENT(canplaythrough)
** Check initial in-band track states
EXPECTED (video.textTracks.length == '1') OK
RUN(inbandTrack1 = video.textTracks[0])
EXPECTED (inbandTrack1.mode == 'disabled') OK
EXPECTED (inbandTrack1.cues == 'null') OK
EXPECTED (inbandTrack1.language == 'en') OK
EXPECTED (inbandTrack1.kind == 'captions') OK
RUN(inbandTrack1.mode = 'showing')
EVENT(change)
RUN(video.play())
RUN(video.pause())
RUN(video.play())
RUN(video.pause())
END OF TEST