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

Unified Diff: third_party/WebKit/LayoutTests/media/media-controls.js

Issue 2265463002: Remove unused functions from media-controls.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/media-controls.js
diff --git a/third_party/WebKit/LayoutTests/media/media-controls.js b/third_party/WebKit/LayoutTests/media/media-controls.js
index c88eb7544a9971dcbbd4412ad123079d937adca1..1cf1d28c04f60304e56db15d43810453a5e6aedb 100644
--- a/third_party/WebKit/LayoutTests/media/media-controls.js
+++ b/third_party/WebKit/LayoutTests/media/media-controls.js
@@ -135,31 +135,6 @@ function isClosedCaptionsButtonVisible(currentMediaElement)
return false;
}
-function testClosedCaptionsButtonVisibility(expected)
-{
- try {
- captionsButtonElement = mediaControlsButton(mediaElement, "toggle-closed-captions-button");
- captionsButtonCoordinates = mediaControlsButtonCoordinates(mediaElement, "toggle-closed-captions-button");
- } catch (exception) {
- consoleWrite("Failed to find a closed captions button or its coordinates: " + exception);
- if (expected)
- failTest();
- return;
- }
-
- consoleWrite("");
- if (expected == true) {
- consoleWrite("** Caption button should be visible and enabled.");
- testExpected("captionsButtonCoordinates[0]", 0, ">");
- testExpected("captionsButtonCoordinates[1]", 0, ">");
- testExpected("captionsButtonElement.disabled", false);
- } else {
- consoleWrite("** Caption button should not be visible.");
- testExpected("captionsButtonCoordinates[0]", 0, "<=");
- testExpected("captionsButtonCoordinates[1]", 0, "<=");
- }
-}
-
function clickAtCoordinates(x, y)
{
eventSender.mouseMoveTo(x, y);
@@ -167,12 +142,6 @@ function clickAtCoordinates(x, y)
eventSender.mouseUp();
}
-function clickCCButton()
-{
- consoleWrite("*** Click the CC button.");
- clickAtCoordinates(captionsButtonCoordinates[0], captionsButtonCoordinates[1]);
-}
-
function textTrackListItemAtIndex(video, index)
{
var textTrackListElementID = "-internal-media-controls-text-track-list";
@@ -188,14 +157,6 @@ function textTrackListItemAtIndex(video, index)
}
}
-function selectTextTrack(video, index)
-{
- clickCCButton();
- var trackListItemElement = textTrackListItemAtIndex(video, index);
- var trackListItemCoordinates = elementCoordinates(trackListItemElement);
- clickAtCoordinates(trackListItemCoordinates[0], trackListItemCoordinates[1]);
-}
-
function clickTextTrackAtIndex(video, index)
{
var captionsButtonCoordinates = mediaControlsButtonCoordinates(video, "toggle-closed-captions-button");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698