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

Issue 378663002: MacViews: Disable animations when running views_unittests. (Closed)

Created:
6 years, 5 months ago by Andre
Modified:
6 years, 5 months ago
Reviewers:
msw, sadrul
CC:
chromium-reviews, tfarina, mac-views-reviews_chromium.org, sky, Ian Vollick
Project:
chromium
Visibility:
Public.

Description

MacViews: Disable animations when running views_unittests. Disable animations to get TextfieldTest.DragToSelect to pass. AuraTestHelper disables animations, so they were already disabled on non-Mac. This change creates ViewsTestHelperMac that disables animation the same way as ViewsTestHelperAura does. BUG=378134 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282385

Patch Set 1 #

Patch Set 2 : Create ViewsTestHelperMac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -24 lines) Patch
M ui/views/test/views_test_helper.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
A ui/views/test/views_test_helper_mac.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A + ui/views/test/views_test_helper_mac.mm View 1 1 chunk +8 lines, -16 lines 0 comments Download
M ui/views/views.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Andre
6 years, 5 months ago (2014-07-07 21:36:38 UTC) #1
msw
ScopedAnimationDurationScaleMode instances are more commonly owned by *TestHelper classes, more specific test classes, or tests ...
6 years, 5 months ago (2014-07-07 23:11:44 UTC) #2
tapted
I think adding a ViewsTestHelperMac would be most consistent -- there's already a ViewsTestHelper::Create function, ...
6 years, 5 months ago (2014-07-07 23:25:53 UTC) #3
Andre
On 2014/07/07 23:25:53, tapted wrote: > I think adding a ViewsTestHelperMac would be most consistent ...
6 years, 5 months ago (2014-07-08 00:08:32 UTC) #4
tapted
On 2014/07/08 00:08:32, Andre wrote: > On 2014/07/07 23:25:53, tapted wrote: > > I think ...
6 years, 5 months ago (2014-07-08 00:35:44 UTC) #5
Andre
On 2014/07/08 00:35:44, tapted wrote: > On 2014/07/08 00:08:32, Andre wrote: > > On 2014/07/07 ...
6 years, 5 months ago (2014-07-08 00:43:09 UTC) #6
tapted
On 2014/07/08 00:43:09, Andre wrote: > On 2014/07/08 00:35:44, tapted wrote: > > On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 00:56:58 UTC) #7
Andre
On 2014/07/08 00:56:58, tapted wrote: > On 2014/07/08 00:43:09, Andre wrote: > > On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 01:07:07 UTC) #8
msw
On 2014/07/08 01:07:07, Andre wrote: > On 2014/07/08 00:56:58, tapted wrote: > > On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 01:19:46 UTC) #9
ajuma
On 2014/07/08 01:19:46, msw wrote: > On 2014/07/08 01:07:07, Andre wrote: > > On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 14:04:41 UTC) #10
Andre
I've created ViewsTestHelperMac to disable the animation (patch #2 ).
6 years, 5 months ago (2014-07-08 17:47:49 UTC) #11
msw
LGTM; I agree with "The destruction order shouldn't matter in tests, but it feels messy."
6 years, 5 months ago (2014-07-08 19:15:03 UTC) #12
Andre
Sadrul, can you review as owner?
6 years, 5 months ago (2014-07-08 20:15:35 UTC) #13
sadrul
lgtm
6 years, 5 months ago (2014-07-10 14:21:56 UTC) #14
Andre
The CQ bit was checked by andresantoso@chromium.org
6 years, 5 months ago (2014-07-10 16:11:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/378663002/40001
6 years, 5 months ago (2014-07-10 16:13:59 UTC) #16
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 18:34:06 UTC) #17
Message was sent while issue was closed.
Change committed as 282385

Powered by Google App Engine
This is Rietveld 408576698