OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
5 | 5 |
6 <script src=../media-file.js></script> | 6 <script src=../media-file.js></script> |
7 <script src=../video-test.js></script> | 7 <script src=../video-test.js></script> |
8 <script> | 8 <script> |
9 | 9 |
10 var numberOfTrackTests = 2; | 10 var numberOfTrackTests = 2; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 { | 61 { |
62 property : "align", | 62 property : "align", |
63 values : ["middle", "end", "middle"], | 63 values : ["middle", "end", "middle"], |
64 }, | 64 }, |
65 { | 65 { |
66 property : "position", | 66 property : "position", |
67 values : [50, 0, 60], | 67 values : [50, 0, 60], |
68 }, | 68 }, |
69 { | 69 { |
70 property : "line", | 70 property : "line", |
71 values : [-1, -1, -3], | 71 values : ["auto", "auto", -3], |
72 }, | 72 }, |
73 { | 73 { |
74 property : "snapToLines", | 74 property : "snapToLines", |
75 values : [true, true, true], | 75 values : [true, true, true], |
76 }, | 76 }, |
77 ], | 77 ], |
78 }; | 78 }; |
79 testCues(i, expected); | 79 testCues(i, expected); |
80 | 80 |
81 allTestsEnded(); | 81 allTestsEnded(); |
82 } | 82 } |
83 </script> | 83 </script> |
84 </head> | 84 </head> |
85 <body onload="enableAllTextTracks()"> | 85 <body onload="enableAllTextTracks()"> |
86 <p>Tests cue alignment, line and text position from settings.</p> | 86 <p>Tests cue alignment, line and text position from settings.</p> |
87 <video> | 87 <video> |
88 <track src="captions-webvtt/tc018-align-text-line-position.vtt" onlo
ad="trackLoaded()"> | 88 <track src="captions-webvtt/tc018-align-text-line-position.vtt" onlo
ad="trackLoaded()"> |
89 <track src="captions-webvtt/tc018-align-text-line-position-bad.vtt"
onload="trackLoaded()"> | 89 <track src="captions-webvtt/tc018-align-text-line-position-bad.vtt"
onload="trackLoaded()"> |
90 </video> | 90 </video> |
91 </body> | 91 </body> |
92 </html> | 92 </html> |
OLD | NEW |