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

Issue 1774923002: MacViews: Fix failing bubble frame view tests after r375729. (Closed)

Created:
4 years, 9 months ago by karandeepb
Modified:
4 years, 9 months ago
Reviewers:
tapted, msw
CC:
chromium-reviews, tfarina, msw+watch_chromium.org, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, rouslan+bubble_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Fix failing bubble frame view tests after r375729. r375729 changed all the bubble borders on MacViews to use BubbleBorder::NO_ASSETS. This caused the following tests to regress- BubbleFrameViewTest.GetMaximumSize BubbleFrameViewTest.GetMinimumSize BubbleFrameViewTest.GetPreferredSize These tests regressed since the constants kExpectedBorderHeight and kExpectedBorderWidth are set as per BubbleBorder::NO_SHADOWS. This CL fixes these tests by getting the border insets programmatically, rather than depending on fixed constants. BUG=592856 Committed: https://crrev.com/59a5f4fd9d5b761d459878a1616a4c76bce36183 Cr-Commit-Position: refs/heads/master@{#381148}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed review comments. #

Total comments: 2

Patch Set 3 : Rename constants. #

Total comments: 5

Patch Set 4 : Modify comment. #

Total comments: 4

Patch Set 5 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -17 lines) Patch
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 3 4 2 chunks +24 lines, -17 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
karandeepb
PTAL Trent. Thanks. https://codereview.chromium.org/1774923002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (left): https://codereview.chromium.org/1774923002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc#oldcode34 ui/views/bubble/bubble_frame_view_unittest.cc:34: const int kExpectedBorderHeight = 29; The ...
4 years, 9 months ago (2016-03-08 23:17:52 UTC) #3
tapted
https://codereview.chromium.org/1774923002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (left): https://codereview.chromium.org/1774923002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc#oldcode421 ui/views/bubble/bubble_frame_view_unittest.cc:421: gfx::Size preferred_size = frame.GetPreferredSize(); what about something like gfx::Rect ...
4 years, 9 months ago (2016-03-08 23:38:09 UTC) #4
karandeepb
PTAL Trent. Thanks. https://codereview.chromium.org/1774923002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (left): https://codereview.chromium.org/1774923002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc#oldcode421 ui/views/bubble/bubble_frame_view_unittest.cc:421: gfx::Size preferred_size = frame.GetPreferredSize(); On 2016/03/08 ...
4 years, 9 months ago (2016-03-09 00:06:59 UTC) #5
tapted
lgtm % nit https://codereview.chromium.org/1774923002/diff/20001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/1774923002/diff/20001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode35 ui/views/bubble/bubble_frame_view_unittest.cc:35: const int kExpectedNonClientWidth = 12; nit: ...
4 years, 9 months ago (2016-03-09 00:19:43 UTC) #6
karandeepb
+msw@ for owner's review. https://codereview.chromium.org/1774923002/diff/20001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/1774923002/diff/20001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode35 ui/views/bubble/bubble_frame_view_unittest.cc:35: const int kExpectedNonClientWidth = 12; ...
4 years, 9 months ago (2016-03-09 00:35:16 UTC) #8
msw
https://codereview.chromium.org/1774923002/diff/40001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/1774923002/diff/40001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode34 ui/views/bubble/bubble_frame_view_unittest.cc:34: // The following do not take bubble border into ...
4 years, 9 months ago (2016-03-14 17:16:25 UTC) #9
karandeepb
PTAL msw@. Thanks. https://codereview.chromium.org/1774923002/diff/40001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/1774923002/diff/40001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode34 ui/views/bubble/bubble_frame_view_unittest.cc:34: // The following do not take ...
4 years, 9 months ago (2016-03-14 23:35:40 UTC) #10
msw
lgtm with nits and optional renaming https://codereview.chromium.org/1774923002/diff/40001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/1774923002/diff/40001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode34 ui/views/bubble/bubble_frame_view_unittest.cc:34: // The following ...
4 years, 9 months ago (2016-03-15 00:00:49 UTC) #11
karandeepb
https://codereview.chromium.org/1774923002/diff/60001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/1774923002/diff/60001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode34 ui/views/bubble/bubble_frame_view_unittest.cc:34: // These account for non-client areas like like title ...
4 years, 9 months ago (2016-03-15 00:56:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1774923002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1774923002/80001
4 years, 9 months ago (2016-03-15 00:56:42 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-15 01:43:44 UTC) #17
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 01:45:37 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/59a5f4fd9d5b761d459878a1616a4c76bce36183
Cr-Commit-Position: refs/heads/master@{#381148}

Powered by Google App Engine
This is Rietveld 408576698