| OLD | NEW |
| (Empty) |
| 1 Test that in-band tracks work with .webkitClosedCaptionsVisible. | |
| 2 | |
| 3 EVENT(canplaythrough) | |
| 4 | |
| 5 ** Check initial in-band track states | |
| 6 EXPECTED (video.textTracks.length == '1') OK | |
| 7 RUN(inbandTrack1 = video.textTracks[0]) | |
| 8 EXPECTED (inbandTrack1.mode == 'disabled') OK | |
| 9 EXPECTED (inbandTrack1.cues == 'null') OK | |
| 10 EXPECTED (inbandTrack1.language == 'en') OK | |
| 11 EXPECTED (inbandTrack1.kind == 'captions') OK | |
| 12 | |
| 13 ** Enable cues and let them load | |
| 14 RUN(video.webkitClosedCaptionsVisible = true) | |
| 15 RUN(video.play()) | |
| 16 EVENT(seeked) | |
| 17 | |
| 18 ** Test to make sure captions are displaying | |
| 19 EXPECTED (inbandTrack1.cues != 'null') OK | |
| 20 EXPECTED (textTrackDisplayElement(video, 'cue').textContent != 'null') OK | |
| 21 | |
| 22 ** Disable captions, cues should be flushed | |
| 23 RUN(video.webkitClosedCaptionsVisible = false) | |
| 24 EXPECTED (inbandTrack1.cues == 'null') OK | |
| 25 | |
| 26 END OF TEST | |
| 27 | |
| OLD | NEW |