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

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

Issue 2004963003: Convert audio-controls* and audio-delete* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 | « third_party/WebKit/LayoutTests/media/audio-delete-while-slider-thumb-clicked-expected.txt ('k') | 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 ca52cb1810f6a9f713b60e33785c0528525f3e11..b923623ff72fe17809c197bc339bbf72e5c5e7a2 100644
--- a/third_party/WebKit/LayoutTests/media/media-controls.js
+++ b/third_party/WebKit/LayoutTests/media/media-controls.js
@@ -99,6 +99,20 @@ function textTrackDisplayElement(parentElement, id, cueNumber)
return displayElement;
}
+function isClosedCaptionsButtonVisible(currentMediaElement)
+{
+ var captionsButtonElement = mediaControlsButton(currentMediaElement, "toggle-closed-captions-button");
+ var captionsButtonCoordinates = mediaControlsButtonCoordinates(currentMediaElement, "toggle-closed-captions-button");
+
+ if (!captionsButtonElement.disabled
+ && captionsButtonCoordinates[0] > 0
+ && captionsButtonCoordinates[1] > 0) {
+ return true;
+ }
+
+ return false;
+}
+
function testClosedCaptionsButtonVisibility(expected)
{
try {
« no previous file with comments | « third_party/WebKit/LayoutTests/media/audio-delete-while-slider-thumb-clicked-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698