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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-webvtt-tc017-line-position.html

Issue 2725313002: The WebVTT 'line' settings should be parsed as a float (Closed)
Patch Set: Updated expectations Created 3 years, 9 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Tests cue line position from settings.</title> 2 <title>Tests cue line position from settings.</title>
3 <script src="track-helpers.js"></script> 3 <script src="track-helpers.js"></script>
4 <script src="../../resources/testharness.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../../resources/testharnessreport.js"></script>
6 <video> 6 <video>
7 <track src="captions-webvtt/tc017-line-position.vtt"> 7 <track src="captions-webvtt/tc017-line-position.vtt">
8 <track src="captions-webvtt/tc017-line-position-bad.vtt"> 8 <track src="captions-webvtt/tc017-line-position-bad.vtt">
9 </video> 9 </video>
10 <script> 10 <script>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 assert_cues_match(video.textTracks[index].cues, expected); 43 assert_cues_match(video.textTracks[index].cues, expected);
44 } 44 }
45 45
46 function testTrackError(index) { 46 function testTrackError(index) {
47 var expected = [ 47 var expected = [
48 { line : "auto", snapToLines : true }, 48 { line : "auto", snapToLines : true },
49 { line : "auto", snapToLines : true }, 49 { line : "auto", snapToLines : true },
50 { line : "auto", snapToLines : true }, 50 { line : "auto", snapToLines : true },
51 { line : "auto", snapToLines : true }, 51 { line : "auto", snapToLines : true },
52 { line : "auto", snapToLines : true },
53 { line : "auto", snapToLines : true } 52 { line : "auto", snapToLines : true }
54 ]; 53 ];
55 54
56 assert_cues_match(video.textTracks[index].cues, expected); 55 assert_cues_match(video.textTracks[index].cues, expected);
57 } 56 }
58 }); 57 });
59 </script> 58 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698