| Index: LayoutTests/media/media-controls.js
|
| diff --git a/LayoutTests/media/media-controls.js b/LayoutTests/media/media-controls.js
|
| index 6a3c87d10ca7b5c0c72935edd613c9256cd0d98d..c6767f79fb1bd49340b7797e76f6eece8df36caa 100644
|
| --- a/LayoutTests/media/media-controls.js
|
| +++ b/LayoutTests/media/media-controls.js
|
| @@ -90,7 +90,7 @@ function textTrackDisplayElement(parentElement, id, cueNumber)
|
| function testClosedCaptionsButtonVisibility(expected)
|
| {
|
| try {
|
| - captionsButtonElement = mediaControlsElement(internals.shadowRoot(mediaElement).firstChild, "-webkit-media-controls-toggle-closed-captions-button");
|
| + 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);
|
|
|