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

Side by Side Diff: LayoutTests/media/track/track-webvtt-tc015-positioning.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 var numberOfTrackTests = 3; 10 var numberOfTrackTests = 3;
(...skipping 11 matching lines...) Expand all
22 function testTrack(i) 22 function testTrack(i)
23 { 23 {
24 findMediaElement(); 24 findMediaElement();
25 var expected = 25 var expected =
26 { 26 {
27 length : 4, 27 length : 4,
28 tests: 28 tests:
29 [ 29 [
30 { 30 {
31 property : "position", 31 property : "position",
32 values : [0, 50, 50, 100], 32 values : [0, 50, "auto", 100],
33 }, 33 },
34 ], 34 ],
35 }; 35 };
36 testCues(i, expected); 36 testCues(i, expected);
37 37
38 allTestsEnded(); 38 allTestsEnded();
39 } 39 }
40 40
41 function testTrackError(i) 41 function testTrackError(i)
42 { 42 {
43 findMediaElement(); 43 findMediaElement();
44 var expected = 44 var expected =
45 { 45 {
46 length : 8, 46 length : 8,
47 tests: 47 tests:
48 [ 48 [
49 { 49 {
50 property : "position", 50 property : "position",
51 values : [50, 50, 50, 50, 50, 50, 50, 50], 51 values : ["auto", "auto", "auto", "auto", "auto", "a uto", "auto", "auto"],
52 }, 52 },
53 ], 53 ],
54 }; 54 };
55 testCues(i, expected); 55 testCues(i, expected);
56 56
57 allTestsEnded(); 57 allTestsEnded();
58 } 58 }
59 </script> 59 </script>
60 </head> 60 </head>
61 <body onload="enableAllTextTracks()"> 61 <body onload="enableAllTextTracks()">
62 <p>Tests cue text position from settings.</p> 62 <p>Tests cue text position from settings.</p>
63 <video> 63 <video>
64 <track src="captions-webvtt/tc015-positioning.vtt" onload="trackLoad ed()"> 64 <track src="captions-webvtt/tc015-positioning.vtt" onload="trackLoad ed()">
65 <track src="captions-webvtt/tc015-positioning-ltr.vtt" onload="track Loaded()"> 65 <track src="captions-webvtt/tc015-positioning-ltr.vtt" onload="track Loaded()">
66 <track src="captions-webvtt/tc015-positioning-bad.vtt" onload="track Loaded()"> 66 <track src="captions-webvtt/tc015-positioning-bad.vtt" onload="track Loaded()">
67 </video> 67 </video>
68 </body> 68 </body>
69 </html> 69 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698