| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Tests cue line position from settings.</title> | 2 <title>Tests cue line position from settings.</title> |
| 3 <script src="track-helpers.js"></script> | 3 <script src="track-helpers.js"></script> |
| 4 <script src="../../resources/testharness.js"></script> | 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> | 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 <video> | 6 <video> |
| 7 <track src="captions-webvtt/tc017-line-position.vtt"> | 7 <track src="captions-webvtt/tc017-line-position.vtt"> |
| 8 <track src="captions-webvtt/tc017-line-position-bad.vtt"> | 8 <track src="captions-webvtt/tc017-line-position-bad.vtt"> |
| 9 </video> | 9 </video> |
| 10 <script> | 10 <script> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 assert_cues_match(video.textTracks[index].cues, expected); | 43 assert_cues_match(video.textTracks[index].cues, expected); |
| 44 } | 44 } |
| 45 | 45 |
| 46 function testTrackError(index) { | 46 function testTrackError(index) { |
| 47 var expected = [ | 47 var expected = [ |
| 48 { line : "auto", snapToLines : true }, | 48 { line : "auto", snapToLines : true }, |
| 49 { line : "auto", snapToLines : true }, | 49 { line : "auto", snapToLines : true }, |
| 50 { line : "auto", snapToLines : true }, | 50 { line : "auto", snapToLines : true }, |
| 51 { line : "auto", snapToLines : true }, | 51 { line : "auto", snapToLines : true }, |
| 52 { line : "auto", snapToLines : true }, | |
| 53 { line : "auto", snapToLines : true } | 52 { line : "auto", snapToLines : true } |
| 54 ]; | 53 ]; |
| 55 | 54 |
| 56 assert_cues_match(video.textTracks[index].cues, expected); | 55 assert_cues_match(video.textTracks[index].cues, expected); |
| 57 } | 56 } |
| 58 }); | 57 }); |
| 59 </script> | 58 </script> |
| OLD | NEW |