Index: LayoutTests/media/track/track-cue-rendering-after-controls-added-expected.html |
diff --git a/LayoutTests/media/track/track-webvtt-two-cue-layout-after-first-end-expected.html b/LayoutTests/media/track/track-cue-rendering-after-controls-added-expected.html |
similarity index 51% |
copy from LayoutTests/media/track/track-webvtt-two-cue-layout-after-first-end-expected.html |
copy to LayoutTests/media/track/track-cue-rendering-after-controls-added-expected.html |
index 2f009352d10deb666b242599a4e1c4ef7e73c02d..55ab790eebe116943e5a18459a72a2c8c5bfc7fd 100644 |
--- a/LayoutTests/media/track/track-webvtt-two-cue-layout-after-first-end-expected.html |
+++ b/LayoutTests/media/track/track-cue-rendering-after-controls-added-expected.html |
@@ -1,15 +1,21 @@ |
<!DOCTYPE html> |
-<title>WebVTT two-cue layout after the first cue has ended (reference)</title> |
-<video style="border:1px solid gray"> |
+<title>Text track cue layout after controls are added (reference)</title> |
+<style> |
+::cue { |
+ font-size: 50px; |
+} |
+</style> |
+<video controls style="border:1px solid gray"> |
<source src="opera/track/webvtt/rendering/reftest/media/white.webm" type="video/webm"> |
<source src="opera/track/webvtt/rendering/reftest/media/white.mp4" type="video/mp4"> |
</video> |
<script> |
-// Add a single cue at line -2, where it would be if there was a first |
+// Add a single cue at line -2, where it would be if there were controls visible |
+// at the bottom. (This assumes that those controls are less than 50px high.) |
// cue at line -1. |
var video = document.querySelector("video"); |
var track = video.addTextTrack("captions"); |
-var cue = new VTTCue(0, 3, "cue 2"); |
+var cue = new VTTCue(0, 1, "text"); |
cue.line = -2; |
track.addCue(cue); |
track.mode = "showing"; |