Chromium Code Reviews
DescriptionMacViews: Fix ViewTest.HandleAccelerator by faking window activation
In fact, fake activation for all tests that use ViewsTestHelper, except
those that run as interactive_ui_tests.
Currently for HandleAccelerator, `EXPECT_TRUE(widget->IsActive())` fails
on Mac since desktop widgets are used rather than Aura widgets, so
activation is asynchronous.
Also TYPE_POPUP widgets are not activatable by default (on all
platforms). For non-desktop Aura widgets, Show() on non-activatable
widgets does not activate, but Activate() does allow activation.
Make it easier for a unit test inheriting from ViewsTestBase to use fake
window activation on Mac without using #ifdefs by just giving it to them
by default.
BUG=592890
Committed: https://crrev.com/2a697015fafd0c99b169890a9a7ac0b2011a91c0
Cr-Commit-Position: refs/heads/master@{#380917}
Patch Set 1 #Patch Set 2 : fix gn deps, format consistently #Patch Set 3 : Delay the activatableness #
Total comments: 3
Patch Set 4 : rebase #Patch Set 5 : Faked activations for everyone! #
Dependent Patchsets: Messages
Total messages: 17 (10 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||