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"); |