4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <script src=../media-file.js></script>
7 <script src=../video-test.js></script>
10 function trackLoaded()
12 cues = testTrack.track.cues;
14 consoleWrite("<br>*** Testing TextTrackCueList length");
16 testExpected("cues.length", 4);
18 consoleWrite("<br>*** Testing TextTrackCueList [] operator");
20 testExpected("cues[0].id", "1");
21 testExpected("cues[3].id", "4");
22 testExpected("cues[4]", undefined);
24 consoleWrite("<br>*** Testing TextTrackCueList getCueById()");
26 testExpected("cues.getCueById('1').startTime", 0);
27 testExpected("cues.getCueById('4').startTime", 121);
28 testExpected("cues.getCueById('junk')", undefined);
36 <p>Tests TextTrackCueList functionality: length, operator[], and getCueById()</p>
38 <track id="testTrack" src="captions-webvtt/tc013-settings.vtt" kind="captions" onload="trackLoaded()">