| 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 numberOfTrackTests = 2; | 10 numberOfTrackTests = 2; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 { | 26 { |
| 27 length : 4, | 27 length : 4, |
| 28 tests: | 28 tests: |
| 29 [ | 29 [ |
| 30 { | 30 { |
| 31 property : "line", | 31 property : "line", |
| 32 values : [100, 15, "auto", 95], | 32 values : [100, 15, "auto", 95], |
| 33 }, | 33 }, |
| 34 { | 34 { |
| 35 property : "position", | 35 property : "position", |
| 36 values : [50, 40, 10, 50], | 36 values : ["auto", 40, 10, "auto"], |
| 37 }, | 37 }, |
| 38 { | 38 { |
| 39 property : "align", | 39 property : "align", |
| 40 values : ["start", "middle", "middle", "end"], | 40 values : ["start", "middle", "middle", "end"], |
| 41 }, | 41 }, |
| 42 { | 42 { |
| 43 property : "vertical", | 43 property : "vertical", |
| 44 values : ["", "rl", "", "lr"], | 44 values : ["", "rl", "", "lr"], |
| 45 }, | 45 }, |
| 46 ], | 46 ], |
| 47 }, | 47 }, |
| 48 { | 48 { |
| 49 length : 4, | 49 length : 4, |
| 50 tests: | 50 tests: |
| 51 [ | 51 [ |
| 52 { | 52 { |
| 53 property : "line", | 53 property : "line", |
| 54 values : [43, "auto", "auto", "auto"], | 54 values : [43, "auto", "auto", "auto"], |
| 55 }, | 55 }, |
| 56 { | 56 { |
| 57 property : "position", | 57 property : "position", |
| 58 values : [10, 50, 50, 90], | 58 values : [10, 50, "auto", 90], |
| 59 }, | 59 }, |
| 60 { | 60 { |
| 61 property : "align", | 61 property : "align", |
| 62 values : ["middle", "end", "middle", "middle"], | 62 values : ["middle", "end", "middle", "middle"], |
| 63 }, | 63 }, |
| 64 { | 64 { |
| 65 property : "vertical", | 65 property : "vertical", |
| 66 values : ["", "", "", "lr"], | 66 values : ["", "", "", "lr"], |
| 67 }, | 67 }, |
| 68 ], | 68 ], |
| 69 } | 69 } |
| 70 ] | 70 ] |
| 71 testCues(i, expected[i]); | 71 testCues(i, expected[i]); |
| 72 | 72 |
| 73 allTestsEnded(); | 73 allTestsEnded(); |
| 74 } | 74 } |
| 75 </script> | 75 </script> |
| 76 </head> | 76 </head> |
| 77 <body onload="enableAllTextTracks()"> | 77 <body onload="enableAllTextTracks()"> |
| 78 <p>Tests WebVTT settings.</p> | 78 <p>Tests WebVTT settings.</p> |
| 79 <video> | 79 <video> |
| 80 <track src="captions-webvtt/tc013-settings.vtt" onload="trackLoaded(
)"> | 80 <track src="captions-webvtt/tc013-settings.vtt" onload="trackLoaded(
)"> |
| 81 <track src="captions-webvtt/tc013-settings-bad-separation.vtt" onloa
d="trackLoaded()"> | 81 <track src="captions-webvtt/tc013-settings-bad-separation.vtt" onloa
d="trackLoaded()"> |
| 82 </video> | 82 </video> |
| 83 </body> | 83 </body> |
| 84 </html> | 84 </html> |
| OLD | NEW |