Commit 77613e2e authored by John Williams's avatar John Williams Committed by Commit Bot

Possible fix for flaky browser test.

Bug: 1124982, b/168119903
Change-Id: Ifd971c6ad521f436e2af79d168bc643704575690
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2401046
Commit-Queue: John Williams <jrw@chromium.org>
Reviewed-by: default avatarmark a. foltz <mfoltz@chromium.org>
Reviewed-by: default avatarTakumi Fujimoto <takumif@chromium.org>
Cr-Commit-Position: refs/heads/master@{#806009}
parent 04cfc753
......@@ -39,8 +39,8 @@
namespace media_router {
// Base class containing setup code and test cases shared between WebUI and
// Views dialog tests.
// Base class containing setup code and test cases shared between Views dialog
// tests.
class MediaRouterUIBrowserTest : public InProcessBrowserTest {
public:
MediaRouterUIBrowserTest()
......@@ -78,6 +78,7 @@ class MediaRouterUIBrowserTest : public InProcessBrowserTest {
GetCastIcon()->OnMousePressed(
ui::MouseEvent(ui::ET_MOUSE_PRESSED, gfx::Point(0, 0), gfx::Point(0, 0),
ui::EventTimeForNow(), ui::EF_LEFT_MOUSE_BUTTON, 0));
base::RunLoop().RunUntilIdle();
}
bool ToolbarIconExists() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment