New issue
Advanced search Search tips

Issue 910602 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Flakiness in MenuControllerUITest.FocusOnOrphanMenu

Project Member Reported by erikc...@chromium.org, Nov 30

Issue description

Example build: https://ci.chromium.org/p/chromium/builders/luci.chromium.try/win7_chromium_rel_ng/140603

Example task:
https://chromium-swarm.appspot.com/task?id=4176b3e117521b10&refresh=10&show_raw=1

Repeated failure:
"""
../../chrome/browser/ui/views/menu_interactive_uitest.cc(135): error: Value of: first_item->IsSelected()

  Actual: false

Expected: true

Stack trace:

Backtrace:

	StackTraceGetter::CurrentStackTrace [0x0105A638+40]

	testing::internal::UnitTestImpl::CurrentOsStackTraceExceptTop [0x01061A75+69]

	testing::internal::AssertHelper::operator= [0x010616E0+48]

	views::test::MenuControllerUITest_FocusOnOrphanMenu_Test::RunTestOnMainThread [0x00FE7359+441]

	content::BrowserTestBase::ProxyRunTestOnMainThreadLoop [0x0365F204+436]

	ChromeBrowserMainParts::PreMainMessageLoopRunImpl [0x043029B6+4236]

	ChromeBrowserMainParts::PreMainMessageLoopRun [0x0430186E+158]

	content::BrowserMainLoop::PreMainMessageLoopRun [0x01C97303+51]

	content::StartupTaskRunner::RunAllTasksNow [0x0201E9E8+30]

	content::BrowserMainLoop::CreateStartupTasks [0x01C96254+804]

	content::BrowserMainRunnerImpl::Initialize [0x01C99578+88]

	content::BrowserMain [0x01C945DA+126]

	content::RunBrowserProcessMain [0x034799EC+84]

	content::ContentMainRunnerImpl::RunServiceManager [0x0347A399+629]

	content::ContentMainRunnerImpl::Run [0x0347A0FF+351]

	content::ContentServiceManagerMainDelegate::RunEmbedderProcess [0x03479733+19]

	service_manager::Main [0x03E5DE60+1384]

	content::ContentMain [0x0347993F+51]

	content::BrowserTestBase::SetUp [0x0365EEEB+1947]
"""
 
Status: Started (was: Assigned)
I suspect this has to do with the mouse moving while the test is running. I can reproduce the failure locally by moving the mouse around while the test is running. I've noticed that win 7 trybots are more vulnerable to this type of issue. I'm not sure how to prevent this and still have a valid test - one possibility is to simply check that the menu window has focus. Or perhaps there's a way to tell the menu to ignore mouse events.

Sign in to add a comment