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

Issue 1642553004: Make a test not depend on system settings. (Closed)

Created:
4 years, 11 months ago by Alexander Semashko
Modified:
4 years, 10 months ago
Reviewers:
tapted, no sievers
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make a test not depend on system settings. On MacOS, the test fails if the system-wide preferred scroller style is overlay. BUG= Committed: https://crrev.com/1d019b7c5a7d8f0cde403056e648a403814d6d10 Cr-Commit-Position: refs/heads/master@{#372906}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Redo with swizzling. #

Total comments: 2

Patch Set 3 : Fix naming nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -0 lines) Patch
M content/browser/site_per_process_browsertest.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M ui/base/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A ui/base/test/scoped_preferred_scroller_style_legacy_mac.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
M ui/base/ui_base.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
Alexander Semashko
4 years, 11 months ago (2016-01-28 09:31:10 UTC) #2
no sievers
-> tapted@
4 years, 10 months ago (2016-01-30 00:19:01 UTC) #5
tapted
https://codereview.chromium.org/1642553004/diff/1/content/browser/theme_helper_mac.h File content/browser/theme_helper_mac.h (right): https://codereview.chromium.org/1642553004/diff/1/content/browser/theme_helper_mac.h#newcode16 content/browser/theme_helper_mac.h:16: class CONTENT_EXPORT ScopedPreferredScrollerStyleOveride { ObjectiveC gives us a cheaty ...
4 years, 10 months ago (2016-01-31 23:33:13 UTC) #6
Alexander Semashko
Thanks, changed it to use swizzling.
4 years, 10 months ago (2016-02-01 15:56:31 UTC) #7
tapted
sweet! lgtm % nit. https://codereview.chromium.org/1642553004/diff/20001/ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm File ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm (right): https://codereview.chromium.org/1642553004/diff/20001/ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm#newcode41 ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm:41: NSInteger previousStyle = [NSScroller preferredScrollerStyle]; ...
4 years, 10 months ago (2016-02-01 23:30:20 UTC) #8
Alexander Semashko
https://codereview.chromium.org/1642553004/diff/20001/ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm File ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm (right): https://codereview.chromium.org/1642553004/diff/20001/ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm#newcode41 ui/base/test/scoped_preferred_scroller_style_legacy_mac.mm:41: NSInteger previousStyle = [NSScroller preferredScrollerStyle]; On 2016/02/01 23:30:20, tapted ...
4 years, 10 months ago (2016-02-01 23:40:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1642553004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1642553004/40001
4 years, 10 months ago (2016-02-01 23:42:05 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/141382)
4 years, 10 months ago (2016-02-01 23:58:42 UTC) #14
no sievers
lgtm stamp
4 years, 10 months ago (2016-02-02 00:54:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1642553004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1642553004/40001
4 years, 10 months ago (2016-02-02 07:18:04 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-02 07:24:55 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/1d019b7c5a7d8f0cde403056e648a403814d6d10 Cr-Commit-Position: refs/heads/master@{#372906}
4 years, 10 months ago (2016-02-02 07:26:26 UTC) #21
msw
This caused SitePerProcessBrowserTest.FrameOwnerPropertiesPropagationScrolling to start failing on Mac10.6 Tests: https://build.chromium.org/p/chromium.mac/builders/Mac10.6%20Tests/builds/11632 Trent said he'll take a ...
4 years, 10 months ago (2016-02-02 23:18:12 UTC) #22
tapted
4 years, 10 months ago (2016-02-02 23:21:53 UTC) #23
Message was sent while issue was closed.
On 2016/02/02 23:18:12, msw wrote:
> This caused SitePerProcessBrowserTest.FrameOwnerPropertiesPropagationScrolling
> to start failing on Mac10.6 Tests:
>
https://build.chromium.org/p/chromium.mac/builders/Mac10.6%20Tests/builds/11632
> Trent said he'll take a look; please fix or revert soonish; thanks!.

fix is in https://codereview.chromium.org/1664523002 - It's just 10.6 which we
care increasingly less about.. (but still don't want a red bot just yet)

Powered by Google App Engine
This is Rietveld 408576698