2 <html class=
"reftest-wait">
6 <video id=
"v1" autoplay
></video>
7 <script type=
"text/javascript">
10 * This test is used to ensure we would update the cue display after removing
11 * cue from the text track, the removed cue should not display on the video's
14 function testUpdateDisplayAfterRemovedCue() {
15 let video
= document
.getElementById("v1");
16 video
.src
= "black.mp4";
17 let cue
= new VTTCue(0, 4, "hello testing");
18 let track
= video
.addTextTrack("captions");
19 track
.mode
= "showing";
25 video
.onpause
= () => {
27 document
.documentElement
.removeAttribute('class');
32 window
.addEventListener("MozReftestInvalidate",
33 testUpdateDisplayAfterRemovedCue
);