OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <title>Slow loading WebVTT file interrupted just after a cue text linebreak</tit
le> | 2 <title>Slow loading WebVTT file interrupted just after a cue text linebreak</tit
le> |
| 3 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 4 (Please avoid writing new tests using video-test.js) --> |
3 <script src=/media-resources/video-test.js></script> | 5 <script src=/media-resources/video-test.js></script> |
4 <script> | 6 <script> |
5 function loadAndStall() | 7 function loadAndStall() |
6 { | 8 { |
7 return "http://127.0.0.1:8000/resources/load-and-stall.php"; | 9 return "http://127.0.0.1:8000/resources/load-and-stall.php"; |
8 } | 10 } |
9 | 11 |
10 function vttTrack() | 12 function vttTrack() |
11 { | 13 { |
12 return "?name=../../../media/track/captions-webvtt/captions-multiline-lf.vtt
&mimeType=text%2Fvtt"; | 14 return "?name=../../../media/track/captions-webvtt/captions-multiline-lf.vtt
&mimeType=text%2Fvtt"; |
(...skipping 10 matching lines...) Expand all Loading... |
23 endTest(); | 25 endTest(); |
24 }; | 26 }; |
25 track.onerror = function() { | 27 track.onerror = function() { |
26 failTest(); | 28 failTest(); |
27 }; | 29 }; |
28 track.src = loadAndStall() + vttTrack() + "&stallAt=49&stallFor=1"; | 30 track.src = loadAndStall() + vttTrack() + "&stallAt=49&stallFor=1"; |
29 track.track.mode = "hidden"; | 31 track.track.mode = "hidden"; |
30 } | 32 } |
31 </script> | 33 </script> |
32 <p>Slow loading WebVTT file interrupted just after a cue text linebreak.</p> | 34 <p>Slow loading WebVTT file interrupted just after a cue text linebreak.</p> |
OLD | NEW |