track-cue-rendering-empty-cue.html (512B)
1 <!DOCTYPE html> 2 <title>Empty cues</title> 3 <script src="/common/media.js"></script> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script> 7 async_test(function(t) { 8 var video = document.createElement("video"); 9 video.src = getVideoURI("/media/test"); 10 video.addTextTrack("captions", "regular captions track", "en"); 11 video.textTracks[0].addCue(new VTTCue(0, 4, "")); 12 13 video.onplaying = t.step_func_done(); 14 video.play(); 15 }); 16 </script>