| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <title>Slow loading WebVTT file interrupted in the middle of a timestamp line</t
itle> | 2 <title>Slow loading WebVTT file interrupted in the middle of a timestamp line</t
itle> |
| 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=32&stallFor=1"; | 30 track.src = loadAndStall() + vttTrack() + "&stallAt=32&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 in the middle of a timestamp line.</p> | 34 <p>Slow loading WebVTT file interrupted in the middle of a timestamp line.</p> |
| OLD | NEW |