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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/track/track-webvtt-tc030-interspersed-non-cue.html
diff --git a/LayoutTests/media/track/track-webvtt-tc030-interspersed-non-cue.html b/LayoutTests/media/track/track-webvtt-tc030-interspersed-non-cue.html
new file mode 100644
index 0000000000000000000000000000000000000000..ab8d206623917a4344ff6ff005583c7ec2889840
--- /dev/null
+++ b/LayoutTests/media/track/track-webvtt-tc030-interspersed-non-cue.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+ <script src=../media-file.js></script>
+ <script src=../video-test.js></script>
+ <script>
+
+ numberOfTrackTests = 1;
+
+ function trackLoaded()
+ {
+ numberOfTracksLoaded++;
+ if (numberOfTracksLoaded == numberOfTrackTests) {
+ testTrack0();
+ }
+ }
+
+ function testTrack0()
+ {
+ findMediaElement();
+ var expected =
+ {
+ length: 2,
+ tests:
+ [
+ {
+ property: "text",
+ values:
+ [
+ 'First',
+ 'Second',
+ ],
+ },
+ ],
+ };
+ testCues(0, expected);
+
+ allTestsEnded();
+ }
+ </script>
+ </head>
+ <body onload="enableAllTextTracks()">
+ <p>Tests that an empty line after an identifier line discards the current cue and restarts the cue loop.</p>
+ <video>
+ <track src="captions-webvtt/tc030-interspersed-non-cue.vtt" onload="trackLoaded()">
+ </video>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698