New issue
Advanced search Search tips

Issue 822896 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug

Blocking:
issue 817419



Sign in to add a comment

ui_controls::SendKeyPress Doesn't Always Work

Project Member Reported by robliao@chromium.org, Mar 16 2018

Issue description

Affected Tests:
ConstrainedWindowViewTest.ClosesOnEscape
ExtensionDialogUiTest.TabFocusLoop

Symptoms:
  Bad Widget Delegate while calling CanActivate(). See Stack.

  This is caused by the dialog failing to consistently dismiss during the test.

  IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, ClosesOnEscape) {
    std::unique_ptr<TestDialog> dialog =
        ShowModalDialog(browser()->tab_strip_model()->GetActiveWebContents());
    EXPECT_TRUE(dialog->GetWidget()->IsVisible());
    EXPECT_TRUE(ui_test_utils::SendKeyPressSync(browser(), ui::VKEY_ESCAPE,
                                                false, false, false, false));
    content::RunAllPendingInMessageLoop();
    EXPECT_EQ(NULL, dialog->GetWidget()); <--- Fails, and after this the TestDialog is destroyed, resulting in a bad widget delegate laterr.
  }

Waiting for a keypress that never arrives:
ExtensionDialogUiTest.TabFocusLoop
    ASSERT_TRUE(ui_controls::SendKeyPress(
                    browser()->window()->GetNativeWindow(),
                    ui::VKEY_TAB, false, true, false, false));
    ASSERT_TRUE(button3_focus_listener.WaitUntilSatisfied()); <- Never Returns
 
Blocking: 817419
Labels: -Pri-3 OS-Mac Pri-1
Owner: robliao@chromium.org
Status: Started (was: Untriaged)
Description: Show this description
Summary: Possible Bad Widget Delegate While Calling CanActivate() (was: Possible Stack Overflow While Running MacViews interactive_ui_tests)
Description: Show this description
Summary: ui_controls::SendKeyPress Doesn't Always Work (was: Possible Bad Widget Delegate While Calling CanActivate())
Description: Show this description
Labels: Proj-MacViews
Labels: -Pri-1 Pri-2
This is a test only issue.
Status: Assigned (was: Started)
Labels: Group-Tests

Sign in to add a comment