Source code

Revision control

Copy as Markdown

Other Tools

timings, omitted hours
assert_equals(cues.length, 3);
Array.from(cues).forEach(function(cue, index) {
assert_equals(cue.text, 'text' + index, 'Failed with cue ' + index);
assert_equals(cue.startTime, 0, 'Failed with cue ' + index);
assert_equals(cue.endTime, 1, 'Failed with cue ' + index);
});
===
WEBVTT
00:00.000 --> 00:00:01.000
text0
00:00:00.000 --> 00:01.000
text1
00:00.000 --> 00:01.000
text2