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

Unified Diff: third_party/WebKit/LayoutTests/media/video-controls-caption-single-track.html

Issue 2539023002: Media Controls: Use events to update controls for closed captions. (Closed)
Patch Set: review comments Created 4 years 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/video-controls-caption-single-track.html
diff --git a/third_party/WebKit/LayoutTests/media/video-controls-caption-single-track.html b/third_party/WebKit/LayoutTests/media/video-controls-caption-single-track.html
deleted file mode 100644
index daf4f2065257d7d9899395bdff2737b9e8a9f3cd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/video-controls-caption-single-track.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<title>A single track should not show overflow on caption button-press, instead just toggle.</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="media-controls.js"></script>
-<script src="media-file.js"></script>
-<video controls></video>
-<script>
-async_test(function(t) {
- var captions = ["Caption"];
- var video = document.querySelector("video");
-
- video.oncanplaythrough = t.step_func_done(function() {
- var track1 = video.addTextTrack("captions");
-
- for (var i = 0; i < captions.length; i++) {
- track1.addCue(new VTTCue(0, 120, captions[i]));
- }
- assert_true(isClosedCaptionsButtonVisible(video));
-
- // The captions track should be listed in textTracks, but not yet loaded.
- assert_equals(video.textTracks.length, 1);
- assert_equals(video.textTracks[0].mode, "hidden");
- checkCaptionsHidden(video);
-
- // Get the menu that displays the list of text tracks.
- var captionsList = mediaControlsElement(internals.shadowRoot(video).firstChild,
- "-internal-media-controls-text-track-list");
-
- clickCaptionButton(video);
- assert_equals(getComputedStyle(captionsList).display, "none");
-
- // Captions track should become visible after the closed caption button is pressed.
- checkCaptionsVisible(video, captions);
-
- // Click the closed captions button again and make sure the menu does not appear.
- clickCaptionButton(video);
- assert_equals(getComputedStyle(captionsList).display, "none");
-
- // Captions track should become visible after the closed caption button is pressed.
- checkCaptionsHidden(video);
- });
-
- video.src = findMediaFile("video", "content/counting");
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698