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

Issue 2620963002: MacViews: Correct combobox unittests so that they terminate correctly. (Closed)

Created:
3 years, 11 months ago by karandeepb
Modified:
3 years, 11 months ago
Reviewers:
tapted
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Correct combobox unittests so that they terminate correctly. On MacViews, the tests ComboboxTest.NotifyOnClickWithSpaceKey and ComboboxTest.NotifyOnClickWithReturnKey do not terminate currently when run individually. This only happens on Mac, because on other platforms the combobox dropdown menu is async (non-blocking). However on Mac, a native NSMenu is used to show the combobox dropdown, which runs a nested message loop and hence is blocking. To solve, install a TestMenuRunner for all the tests using the ComboboxTest fixture. This ensures that an actual menu is not created. BUG=679980 TEST= Run out/Default/views_unittests --gtest_filter="ComboboxTest.NotifyOnClickWithSpaceKey" on Mac. Ensure that the test terminates normally. Review-Url: https://codereview.chromium.org/2620963002 Cr-Commit-Position: refs/heads/master@{#443077} Committed: https://chromium.googlesource.com/chromium/src/+/eff8bd896afe40d5d2646857939ed03b76ca3f12

Patch Set 1 : -- #

Total comments: 4

Patch Set 2 : Address review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -27 lines) Patch
M ui/views/controls/combobox/combobox_unittest.cc View 1 11 chunks +33 lines, -27 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (25 generated)
karandeepb
PTAL Trent. Not quite sure what causes these tests to terminate when run in parallel ...
3 years, 11 months ago (2017-01-11 04:38:16 UTC) #19
tapted
nice cleanup! lgtm % nits But also is it weird that only running individually causes ...
3 years, 11 months ago (2017-01-11 15:11:53 UTC) #22
karandeepb
Regarding >>But also is it weird that only running individually causes the tests to fail? ...
3 years, 11 months ago (2017-01-11 23:58:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2620963002/100001
3 years, 11 months ago (2017-01-12 00:02:53 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 00:23:48 UTC) #30
Message was sent while issue was closed.
Committed patchset #2 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/eff8bd896afe40d5d2646857939e...

Powered by Google App Engine
This is Rietveld 408576698