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

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

Issue 2684973004: Remove unnecessary refreshCastButtonVisibility call (Closed)
Patch Set: remove extra blank lines Created 3 years, 10 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
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 59130b1b36501da528f69e49364e465b717a998c..77eae3345eea6e0d320fa875ed0bc4eef1b6f189 100644
--- a/third_party/WebKit/LayoutTests/media/media-controls.js
+++ b/third_party/WebKit/LayoutTests/media/media-controls.js
@@ -9,6 +9,14 @@ const controlsFadeOutDurationMs = 300;
// in MediaControls.cpp.
const controlsMouseMovementTimeoutMs = 3000;
+function castButton(videoElement) {
+ var controlID = '-internal-media-controls-cast-button';
+ var button = mediaControlsElement(window.internals.shadowRoot(videoElement).firstChild, controlID);
+ if (!button)
+ throw 'Failed to find cast button';
+ return button;
+}
+
function overlayCastButton(videoElement)
{
var controlID = '-internal-media-controls-overlay-cast-button';

Powered by Google App Engine
This is Rietveld 408576698