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

Unified Diff: third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-list-hide-on-click-outside.html

Issue 2382233002: Hide overflow menu/closed caption list when clicking outside the list (Closed)
Patch Set: applied Mounir's comments Created 4 years, 2 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-closed-captions-list-hide-on-click-outside.html
diff --git a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-button.html b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-list-hide-on-click-outside.html
similarity index 86%
copy from third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-button.html
copy to third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-list-hide-on-click-outside.html
index 418d70ae2c5259f129e60035a9b848c28238435b..34f0b45e4bcb029dab024ad35b3fb8df1bf50414 100644
--- a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-button.html
+++ b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-closed-captions-list-hide-on-click-outside.html
@@ -35,7 +35,11 @@ async_test(function(t) {
// Click on the closed captions button
var coords = elementCoordinates(overflowList.children[OverflowMenuButtons.CLOSED_CAPTIONS]);
clickAtCoordinates(coords[0], coords[1]);
- assert_not_equals(getComputedStyle(captionsList).display, "none");
+
+ // Click on anywhere outside the closed captions list will close the list
+ var coords = coordinatesOutsideElement(captionsList);
+ clickAtCoordinates(coords[0], coords[1]);
+ assert_equals(getComputedStyle(captionsList).display, "none");
});
});
</script>

Powered by Google App Engine
This is Rietveld 408576698