Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / media / media-controls.js
index 8d68ed4..63b9a67 100644 (file)
@@ -88,7 +88,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);