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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 function testTrackError(i) | 44 function testTrackError(i) |
45 { | 45 { |
46 findMediaElement(); | 46 findMediaElement(); |
47 var expected = | 47 var expected = |
48 { | 48 { |
49 length : 3, | 49 length : 3, |
50 tests: | 50 tests: |
51 [ | 51 [ |
52 { | 52 { |
53 property : "position", | 53 property : "position", |
54 values : [10, 50, 50], | 54 values : [10, "auto", "auto"], |
55 }, | 55 }, |
56 { | 56 { |
57 property : "align", | 57 property : "align", |
58 values : ["middle", "middle", "middle"], | 58 values : ["middle", "middle", "middle"], |
59 }, | 59 }, |
60 ], | 60 ], |
61 }; | 61 }; |
62 testCues(i, expected); | 62 testCues(i, expected); |
63 | 63 |
64 allTestsEnded(); | 64 allTestsEnded(); |
65 } | 65 } |
66 </script> | 66 </script> |
67 </head> | 67 </head> |
68 <body onload="enableAllTextTracks()"> | 68 <body onload="enableAllTextTracks()"> |
69 <p>Tests cue text position and alignment from settings.</p> | 69 <p>Tests cue text position and alignment from settings.</p> |
70 <video> | 70 <video> |
71 <track src="captions-webvtt/tc016-align-positioning.vtt" onload="tra
ckLoaded()"> | 71 <track src="captions-webvtt/tc016-align-positioning.vtt" onload="tra
ckLoaded()"> |
72 <track src="captions-webvtt/tc016-align-positioning-bad.vtt" onload=
"trackLoaded()"> | 72 <track src="captions-webvtt/tc016-align-positioning-bad.vtt" onload=
"trackLoaded()"> |
73 </video> | 73 </video> |
74 </body> | 74 </body> |
75 </html> | 75 </html> |
OLD | NEW |