New issue
Advanced search Search tips

Issue 725257 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 15
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Broken input event routing test in mash_unittests

Project Member Reported by jdufault@chromium.org, May 22 2017

Issue description

The following test fails in mash_unittests but succeeds in ash_unitests (and
ash_unittests --mus).

In the original test, the 'ABC1' events are not delivered to |content|, but
VKEY_RETURN is.


    // Fails in mash_unittests, succeeds in ash_unittests.
    using Fixture = ash::test::AshTestBase;
    TEST_F(Fixture, MashEventRouterBug) {
      auto* content = new views::Textfield();
    
      views::Widget::InitParams params(
          views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
      params.context = CurrentContext();
      params.bounds = gfx::Rect(0, 0, 800, 800);
      auto* widget = new views::Widget();
      widget->Init(params);
      widget->SetContentsView(content);
      widget->Show();
    
      content->RequestFocus();
      EXPECT_EQ(content->GetFocusManager()->GetFocusedView(),
                content);
    
      ui::test::EventGenerator& generator = GetEventGenerator();
      generator.PressKey(ui::KeyboardCode::VKEY_A, 0);
      generator.PressKey(ui::KeyboardCode::VKEY_B, 0);
      generator.PressKey(ui::KeyboardCode::VKEY_C, 0);
      generator.PressKey(ui::KeyboardCode::VKEY_1, 0);
      generator.PressKey(ui::KeyboardCode::VKEY_RETURN, 0);
    
      EXPECT_EQ(base::ASCIIToUTF16("abc1"), content->text());
    }
    
    
 

Comment 2 by sadrul@chromium.org, May 23 2017

Cc: sadrul@chromium.org
Labels: -Pri-3 OS-Chrome Pri-2
Owner: moshayedi@chromium.org
Status: Assigned (was: Untriaged)
This is likely IME related. --> moshayedi@
Status: Started (was: Assigned)
Status: Assigned (was: Started)
Components: -MUS Internals>MUS
Owner: ----
Status: Untriaged (was: Assigned)
Components: -Internals>MUS Internals>Services>WindowService
Components: -Internals>Services>WindowService Internals>Services>Ash
Labels: -Proj-Mustash-Mash
Status: WontFix (was: Untriaged)
mash_unittests has been removed.

Sign in to add a comment