Description[Mac]Port browser_keyevents_browsertest.cc and browser_focus_uitest.cc to Mac.
This CL includes:
1. Implementation of ui_test_utils_mac.mm
2. Fix for ui_controls_mac.mm
3. Port browser_keyevents_browsertest.cc to Mac and add some new tests for Mac.
4. Partially port browser_focus_uitest.cc to Mac, now can be compiled and run
on Mac but some tests fail.
5. Add two functions into ui_test_utils.h: HideNativeWindow() and
ShowAndFocusNativeWindow(). The latter one shows a window and grabs the input
focus, which is useful for tests depending on fake keyboard/mouse events.
Because browser_keyevents_browsertests.cc and browser_focus_uitest.cc
belong to interactive_ui_tests, which is not available on Mac (see
http://crbug.com/21276), in order to test them on Mac, you may want to
move them into browser_tests locally. But it won't work on build and try
bots, because these tests must be run with screen unlocked.
This CL depends on CL: http://codereview.chromium.org/2973004
and http://codereview.chromium.org/2805075
BUG=22515
Keyboard handling needs unit tests
BUG=48671
interactive_ui_test: BrowserKeyEventsTest.NormalKeyEvents is flaky
BUG=48936
Browser window is opened inactivated when running an InProcessBrowserTest.
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53840
Patch Set 1 #
Total comments: 7
Patch Set 2 : Fix compilation issue on Linux. #
Total comments: 22
Patch Set 3 : Update according to review feedback. #
Total comments: 3
Patch Set 4 : Update comment. #Patch Set 5 : Enable BrowserFocusTest and BrowserKeyEventsTests on Mac. #
Messages
Total messages: 17 (0 generated)
|