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

Unified Diff: third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-updates-appropriately.html

Issue 2301823002: Reordering media controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media-controls
Patch Set: addressed comments Created 4 years, 3 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/video-controls-overflow-menu-updates-appropriately.html
diff --git a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-updates-appropriately.html b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-updates-appropriately.html
index 930ca1ea9835fcd27aae23de2d5433632d14ea79..8be5c15d75cfd10c46c03c1a031f257f505eda09 100644
--- a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-updates-appropriately.html
+++ b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-updates-appropriately.html
@@ -28,7 +28,7 @@ async_test(function(t) {
// Cast option in overflow should no longer be visible, but the other
// options should all be.
var buttonsWithoutCast = overflowButtonsCSS;
- buttonsWithoutCast[1] = undefined;
+ buttonsWithoutCast[OverflowMenuButtons.CAST] = undefined;
internals.mediaPlayerRemoteRouteAvailabilityChanged(video, false);
var children = overflowList.children;
@@ -42,12 +42,12 @@ async_test(function(t) {
}
}
internals.mediaPlayerRemoteRouteAvailabilityChanged(video, true);
- assert_not_equals(getComputedStyle(children[1]).display, "none");
+ assert_not_equals(getComputedStyle(children[OverflowMenuButtons.CAST]).display, "none");
// Removing closed captions hides button in overflow menu
- assert_not_equals(getComputedStyle(children[2]).display, "none");
+ assert_not_equals(getComputedStyle(children[OverflowMenuButtons.CLOSED_CAPTIONS]).display, "none");
video.removeChild(trackElement);
- assert_equals(getComputedStyle(children[2]).display, "none");
+ assert_equals(getComputedStyle(children[OverflowMenuButtons.CLOSED_CAPTIONS]).display, "none");
});
});
</script>

Powered by Google App Engine
This is Rietveld 408576698