|
|
Chromium Code Reviews|
Created:
4 years, 2 months ago by Eugene But (OOO till 7-30) Modified:
4 years, 2 months ago CC:
chromium-reviews, mac-reviews_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation.
- call [window_ layoutIfNeeded] to update buttons position, which
is controlled by layout constraints
- use window coordinates for verifying button locations
BUG=655112, 605219
TBR=tapted@chromium.org
Committed: https://crrev.com/0bd2a26b4420c4d4abb0f1101111e16c8f65c91c
Cr-Commit-Position: refs/heads/master@{#425211}
Patch Set 1 #Patch Set 2 : Translate buttons coords to global coord system #Patch Set 3 : Added debug logs #Patch Set 4 : More logs #Patch Set 5 : Convert to window coords. #Patch Set 6 : Fixed conversion code #Patch Set 7 : Actually fixed tests. #Patch Set 8 : Fixed compilation #Patch Set 9 : Fixed compilation #Patch Set 10 : Removed extra logs #
Total comments: 2
Patch Set 11 : Added comments #Messages
Total messages: 49 (41 generated)
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. BUG=655112 ========== to ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112 ==========
eugenebut@chromium.org changed reviewers: + erikchen@chromium.org, tapted@chromium.org
https://codereview.chromium.org/2418703002/diff/180001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/framed_browser_window_unittest.mm (right): https://codereview.chromium.org/2418703002/diff/180001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/framed_browser_window_unittest.mm:115: [window_ layoutIfNeeded]; Why is this necessary? Is it because when I present a window [which isn't done here], it automatically updates the layout?
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2418703002/diff/180001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/framed_browser_window_unittest.mm (right): https://codereview.chromium.org/2418703002/diff/180001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/framed_browser_window_unittest.mm:115: [window_ layoutIfNeeded]; On 2016/10/13 21:57:54, erikchen wrote: > Why is this necessary? Is it because when I present a window [which isn't done > here], it automatically updates the layout? Yes, layout constraints are not kicked in otherwise. Presenting window calls layoutIfNeeded. Added comments before the call.
The CQ bit was checked by eugenebut@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
Description was changed from ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112 ========== to ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112 TBR=tapted@chromium.org ==========
Thanks for quick review!
The CQ bit was checked by eugenebut@chromium.org
Description was changed from ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112 TBR=tapted@chromium.org ========== to ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112, 605219 TBR=tapted@chromium.org ==========
The CQ bit was unchecked by eugenebut@chromium.org
The CQ bit was checked by eugenebut@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112, 605219 TBR=tapted@chromium.org ========== to ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112, 605219 TBR=tapted@chromium.org ==========
Message was sent while issue was closed.
Committed patchset #11 (id:200001)
Message was sent while issue was closed.
Description was changed from ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112, 605219 TBR=tapted@chromium.org ========== to ========== [mac] Fixed FramedBrowserWindowTest.WindowWidgetLocation. - call [window_ layoutIfNeeded] to update buttons position, which is controlled by layout constraints - use window coordinates for verifying button locations BUG=655112, 605219 TBR=tapted@chromium.org Committed: https://crrev.com/0bd2a26b4420c4d4abb0f1101111e16c8f65c91c Cr-Commit-Position: refs/heads/master@{#425211} ==========
Message was sent while issue was closed.
Patchset 11 (id:??) landed as https://crrev.com/0bd2a26b4420c4d4abb0f1101111e16c8f65c91c Cr-Commit-Position: refs/heads/master@{#425211} |
