4 <title>Bug
1580015 - video hangs infinitely during playing subtitle
</title>
5 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 <script type=
"text/javascript" src=
"manifest.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
14 justify-content: center;
25 <div class=
"container">
26 <video id=
"v" src=
"gizmo.mp4" controls
>
27 <track src=
"basic.vtt" kind=
"subtitles" default
>
30 <script type=
"text/javascript">
32 * This test is used to ensure that we don't go into an infinite processing loop
33 * during playing subtitle when setting those CSS properties on video.
35 SimpleTest
.waitForExplicitFinish();
37 let video
= document
.getElementById("v");
38 // We don't need to play whole video, in order to reduce test time, we can start
39 // from the half, which can also reproduce the issue.
40 video
.currentTime
= 3.0;
42 video
.onended
= () => {
43 ok(true, "video ends without entering an infinite processing loop");