track-webvtt-cue-no-id.html (745B)
1 <!DOCTYPE html> 2 <title>Empty cue identifiers, but having "-->" leads to discarded cue</title> 3 <script src="track-helpers.js"></script> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script> 7 check_cues_from_track("resources/cue-no-id.vtt", testTrack); 8 check_cues_from_track("resources/cue-no-id-error.vtt", testTrack); 9 10 function testTrack(track) { 11 var expected = [ 12 { id: "", startTime: 0, endTime: 30.5, text: "Bear is Coming!!!!!" }, 13 { id: "", startTime: 31, endTime: 60.5, text: "I said Bear is coming!!!!" }, 14 { id: "", startTime: 61, endTime: 1200.5, text: "I said Bear is coming now!!!!" } 15 ]; 16 17 assert_cues_match(track.cues, expected); 18 } 19 </script>