In-band text tracks. EVENT(addtrack) EXPECTED (event.track == 'video.textTracks[0]') OK EVENT(addtrack) EXPECTED (event.track == 'video.textTracks[1]') OK EVENT(canplaythrough) ** Check initial in-band track states EXPECTED (video.textTracks.length == '4'), OBSERVED '2' FAIL RUN(inbandTrack1 = video.textTracks[0]) RUN(inbandTrack2 = video.textTracks[1]) RUN(inbandTrack3 = video.textTracks[2]) RUN(inbandTrack4 = video.textTracks[3]) EXPECTED (inbandTrack1.language == 'en') OK EXPECTED (inbandTrack1.kind == 'subtitles') OK EXPECTED (inbandTrack2.language == 'en'), OBSERVED 'fr' FAIL EXPECTED (inbandTrack2.kind == 'forced'), OBSERVED 'subtitles' FAIL TypeError: undefined is not an object (evaluating 'inbandTrack3.language') TypeError: undefined is not an object (evaluating 'inbandTrack3.kind') TypeError: undefined is not an object (evaluating 'inbandTrack4.language') TypeError: undefined is not an object (evaluating 'inbandTrack4.kind') ** Add two tracks, check sort order RUN(addTrack = video.addTextTrack('captions', 'Caption Track', 'en')) RUN(trackElement = document.createElement('track')) RUN(video.appendChild(trackElement)) EXPECTED (video.textTracks.length == '6'), OBSERVED '4' FAIL EXPECTED (video.textTracks[0] == 'trackElement.track') OK EXPECTED (video.textTracks[1] == 'addTrack') OK EXPECTED (video.textTracks[2] == 'inbandTrack1') OK EXPECTED (video.textTracks[3] == 'inbandTrack2') OK ** Unload video file, check track count RUN(video.src = '') EXPECTED (video.textTracks.length == '2') OK END OF TEST