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

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal-expected.html

Issue 2081513002: Remove video-test.js dependency from track-cue-rendering* tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add reference tests Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal-expected.html
diff --git a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal-expected.html b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..46d69816091cc03b2d567f66cc4bdda2a6c0de75
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-horizontal-expected.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<title>Test rendering horizontal line-positioned cues (reference).</title>
+<script src="../media-file.js"></script>
+<video></video>
+<script>
+var video = document.querySelector("video");
+video.src = findMediaFile("video", "../content/test");
+video.currentTime = 0.25;
+var track = video.addTextTrack("captions");
+
+var cue = new VTTCue(0, 1, "Cue 1: should be positioned at the top of the video.");
+cue.line = 0;
+track.addCue(cue);
+
+cue = new VTTCue(0, 1, "Cue 2: should be the second cue and not overlap cue 1.");
+cue.line = 1;
+track.addCue(cue);
+
+cue = new VTTCue(0, 1, "Cue 3: should become the third line from top to bottom.");
+cue.line = 2;
+track.addCue(cue);
+
+cue = new VTTCue(0, 1, "Cue 4: should be fixed positioned around the middle.");
+cue.line = 5;
+track.addCue(cue);
+
+cue = new VTTCue(0, 1, "Cue 5: should be displayed at the bottom of the video.");
+cue.line = -1;
+track.addCue(cue);
+
+cue = new VTTCue(0, 1, "Cue 6: should be on top of bottom positioned cue 5.");
+cue.line = -2;
+track.addCue(cue);
+
+track.mode = "showing";
+</script>

Powered by Google App Engine
This is Rietveld 408576698