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 15 matching lines...) Expand all Loading... |
26 { | 26 { |
27 length : 5, | 27 length : 5, |
28 tests: | 28 tests: |
29 [ | 29 [ |
30 { | 30 { |
31 property : "align", | 31 property : "align", |
32 values : ["start", "start", "middle", "end", "middle
"], | 32 values : ["start", "start", "middle", "end", "middle
"], |
33 }, | 33 }, |
34 { | 34 { |
35 property : "position", | 35 property : "position", |
36 values : [10, 50, 80, 30, 60], | 36 values : [10, "auto", 80, 30, 60], |
37 }, | 37 }, |
38 { | 38 { |
39 property : "line", | 39 property : "line", |
40 values : [0, 0, 80, 5, -3], | 40 values : [0, 0, 80, 5, -3], |
41 }, | 41 }, |
42 { | 42 { |
43 property : "snapToLines", | 43 property : "snapToLines", |
44 values : [false, true, false, true, true], | 44 values : [false, true, false, true, true], |
45 }, | 45 }, |
46 ], | 46 ], |
(...skipping 10 matching lines...) Expand all Loading... |
57 { | 57 { |
58 length : 3, | 58 length : 3, |
59 tests: | 59 tests: |
60 [ | 60 [ |
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 : ["auto", 0, 60], |
68 }, | 68 }, |
69 { | 69 { |
70 property : "line", | 70 property : "line", |
71 values : ["auto", "auto", -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 |