2 In-band text tracks.
3
4 EVENT(addtrack)
5 EXPECTED (event.track == 'video.textTracks[0]') OK
6
7 EVENT(canplaythrough)
8
9 ** Check initial in-band track states
10 EXPECTED (video.textTracks.length == '1') OK
11 RUN(inbandTrack1 = video.textTracks[0])
12 EXPECTED (inbandTrack1.mode == 'disabled') OK
13 EXPECTED (inbandTrack1.cues == 'null') OK
14 EXPECTED (inbandTrack1.language == 'en') OK
15 EXPECTED (inbandTrack1.kind == 'captions') OK
16
17 RUN(inbandTrack1.mode = 'showing')
18 EVENT(change)
19 RUN(video.play())
20
21 RUN(video.pause())
22 RUN(video.play())
23
24 RUN(video.pause())
25 END OF TEST
26