Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: LayoutTests/media/track/track-webvtt-tc013-settings.html

Issue 851933003: WebVTT: Support 'auto' text position (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test nits. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698