| Index: third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-fullscreen-button.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-fullscreen-button.html b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-fullscreen-button.html
|
| index db1fd28699ff161c5dea61fb878cb91dd5ba0ffa..30fccc14bf5a339a2118e566dcabadfa861a8861 100644
|
| --- a/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-fullscreen-button.html
|
| +++ b/third_party/WebKit/LayoutTests/media/video-controls-overflow-menu-fullscreen-button.html
|
| @@ -28,9 +28,12 @@ async_test(function(t) {
|
| var coords = elementCoordinates(overflowList.children[OverflowMenuButtons.FULLSCREEN]);
|
| clickAtCoordinates(coords[0], coords[1]);
|
|
|
| - document.onwebkitfullscreenchange = t.step_func_done(() => {
|
| + document.onwebkitfullscreenchange = t.step_func(() => {
|
| assert_equals(document.fullscreenElement, video);
|
| - assert_equals(getComputedStyle(overflowMenu).display, "none");
|
| + // Hiding the overflow menu is triggered by layout.
|
| + testRunner.layoutAndPaintAsyncThen(t.step_func_done(() => {
|
| + assert_equals(getComputedStyle(overflowMenu).display, "none");
|
| + }));
|
| });
|
| }));
|
| });
|
|
|