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

Side by Side Diff: LayoutTests/media/track/track-webvtt-tc030-interspersed-non-cue.html

Issue 55853002: Handle empty lines in the 'TimingsAndSettings' state in the WebVTTParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
6 <script src=../media-file.js></script>
7 <script src=../video-test.js></script>
8 <script>
9
10 numberOfTrackTests = 1;
11
12 function trackLoaded()
13 {
14 numberOfTracksLoaded++;
15 if (numberOfTracksLoaded == numberOfTrackTests) {
16 testTrack0();
17 }
18 }
19
20 function testTrack0()
21 {
22 findMediaElement();
23 var expected =
24 {
25 length: 2,
26 tests:
27 [
28 {
29 property: "text",
30 values:
31 [
32 'First',
33 'Second',
34 ],
35 },
36 ],
37 };
38 testCues(0, expected);
39
40 allTestsEnded();
41 }
42 </script>
43 </head>
44 <body onload="enableAllTextTracks()">
45 <p>Tests that an empty line after an identifier line discards the current cue and restarts the cue loop.</p>
46 <video>
47 <track src="captions-webvtt/tc030-interspersed-non-cue.vtt" onload=" trackLoaded()">
48 </video>
49 </body>
50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698