Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Issue 534993002: Introduce ui_test_utils::FocusView and de-flake OmniboxViewTest.BeginningShownAfterBlur (Closed)

Created:
6 years, 3 months ago by tapted
Modified:
6 years, 3 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Introduce ui_test_utils::FocusView and de-flake OmniboxViewTest.BeginningShownAfterBlur Currently interactive UI tests typically call `ClickOnView` to transfer focus. On Mac, the behaviour of a click changes when an application loses focus, and re-activating the application in a test is not reliable. The test application shouldn't be losing focus in interactive_ui_tests, but tracing suggests this is ocurring anyway. This CL introduces ui_test_utils::FocusView which is a more robust way to transfer focus in a test. OmniboxViewTest.BeginningShownAfterBlur is changed to use ui_test_utils::FocusView and re-enabled. BUG=406012 Committed: https://crrev.com/98d6f1e45c66a03b7b583eec3694c84ff7411fec Cr-Commit-Position: refs/heads/master@{#293516}

Patch Set 1 : experiments and tracing #

Patch Set 2 : revert tracing and experiments #

Patch Set 3 : Spel more gooder #

Total comments: 2

Patch Set 4 : oops - missing newline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -14 lines) Patch
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 2 chunks +8 lines, -14 lines 0 comments Download
M chrome/test/base/interactive_test_utils.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/base/interactive_test_utils_mac.mm View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/base/interactive_test_utils_views.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
tapted
Hi sky, please take a look. There's a couple more notes on the bug at ...
6 years, 3 months ago (2014-09-03 07:29:29 UTC) #3
sky
LGTM
6 years, 3 months ago (2014-09-03 15:49:38 UTC) #4
sky
One other question (this shouldn't hold up landing). If ClickToFocus is unreliable on mac should ...
6 years, 3 months ago (2014-09-03 15:50:10 UTC) #5
msw
lgtm with a nit. https://codereview.chromium.org/534993002/diff/50001/chrome/test/base/interactive_test_utils_mac.mm File chrome/test/base/interactive_test_utils_mac.mm (right): https://codereview.chromium.org/534993002/diff/50001/chrome/test/base/interactive_test_utils_mac.mm#newcode80 chrome/test/base/interactive_test_utils_mac.mm:80: void FocusView(const Browser* browser, ViewID ...
6 years, 3 months ago (2014-09-03 18:21:24 UTC) #7
tapted
On 2014/09/03 15:50:10, sky wrote: > One other question (this shouldn't hold up landing). If ...
6 years, 3 months ago (2014-09-05 13:01:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/534993002/70001
6 years, 3 months ago (2014-09-05 13:02:47 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:70001) as 1e662a4c3bdee1178b8a0691772da60737e97f9f
6 years, 3 months ago (2014-09-05 14:15:38 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:39:25 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/98d6f1e45c66a03b7b583eec3694c84ff7411fec
Cr-Commit-Position: refs/heads/master@{#293516}

Powered by Google App Engine
This is Rietveld 408576698