| 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>
|
|
|