|
|
DescriptionFix tests in ShelfLayoutManagerTest when MD is enable
When ash-md is set to MATERIAL_EXPERIMENTAL by default, shelf has a
visible height of 0 whereas the visible height is 3 for non-MD.
Updated test cases GestureDrag, SetAlignment and AutoHide to match
the new value.
BUG=623432, 623430, 623429
Committed: https://crrev.com/b7a57976c42de5959d7a45cc9133864b45cf3399
Cr-Commit-Position: refs/heads/master@{#405962}
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix wording #
Total comments: 1
Messages
Total messages: 24 (12 generated)
Description was changed from ========== Fix tests in ShelfLayoutManagerTest when MD is enable BUG=623432, 623430, 623429 ========== to ========== Fix tests in ShelfLayoutManagerTest when MD is enable When ash-md is set to MATERIAL_EXPERIMENTAL by default, shelf has a visible height of 0 whereas the visible height is 3 for non-MD. Updated test cases GestureDrag, SetAlignment and AutoHide to match the new value. BUG=623432, 623430, 623429 ==========
yiyix@chromium.org changed reviewers: + bruthig@chromium.org
The CQ bit was checked by yiyix@chromium.org to run a CQ dry run
@bruthig, could you please take a look at this change? Thank you.
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 to run a CQ dry run
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2143033003/diff/1/ash/shelf/shelf_layout_mana... File ash/shelf/shelf_layout_manager_unittest.cc (right): https://codereview.chromium.org/2143033003/diff/1/ash/shelf/shelf_layout_mana... ash/shelf/shelf_layout_manager_unittest.cc:195: if (GetShelf()->GetAutoHideState() != ash::SHELF_AUTO_HIDE_HIDDEN) { Can you collapse this 'if'/'else if' into a single if clause? i.e. if (!ash::MaterialDesignController::IsShelfMaterial() || GetShelf()->GetAutoHideState() != ash::SHELF_AUTO_HIDE_HIDDEN) { EXPECT_GE(shelf_bounds.height(), not_visible_bounds_.height()); }
@bruthig, could you please take a loot at the new version? Thank you. https://codereview.chromium.org/2143033003/diff/1/ash/shelf/shelf_layout_mana... File ash/shelf/shelf_layout_manager_unittest.cc (right): https://codereview.chromium.org/2143033003/diff/1/ash/shelf/shelf_layout_mana... ash/shelf/shelf_layout_manager_unittest.cc:195: if (GetShelf()->GetAutoHideState() != ash::SHELF_AUTO_HIDE_HIDDEN) { On 2016/07/13 19:36:51, bruthig wrote: > Can you collapse this 'if'/'else if' into a single if clause? > > i.e. > > if (!ash::MaterialDesignController::IsShelfMaterial() || > GetShelf()->GetAutoHideState() != ash::SHELF_AUTO_HIDE_HIDDEN) { > EXPECT_GE(shelf_bounds.height(), not_visible_bounds_.height()); > } Done.
lgtm
yiyix@chromium.org changed reviewers: + jamescook@chromium.org
@jamescook, could you please take a look? Thank you very much.
LGTM https://codereview.chromium.org/2143033003/diff/20001/ash/shelf/shelf_layout_... File ash/shelf/shelf_layout_manager_unittest.cc (right): https://codereview.chromium.org/2143033003/diff/20001/ash/shelf/shelf_layout_... ash/shelf/shelf_layout_manager_unittest.cc:143: : auto_hidden_shelf_widget_bounds_(not_visible), These names are much clearer. Thanks for changing them.
The CQ bit was checked by yiyix@chromium.org
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
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
The CQ bit was checked by yiyix@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 ========== Fix tests in ShelfLayoutManagerTest when MD is enable When ash-md is set to MATERIAL_EXPERIMENTAL by default, shelf has a visible height of 0 whereas the visible height is 3 for non-MD. Updated test cases GestureDrag, SetAlignment and AutoHide to match the new value. BUG=623432, 623430, 623429 ========== to ========== Fix tests in ShelfLayoutManagerTest when MD is enable When ash-md is set to MATERIAL_EXPERIMENTAL by default, shelf has a visible height of 0 whereas the visible height is 3 for non-MD. Updated test cases GestureDrag, SetAlignment and AutoHide to match the new value. BUG=623432, 623430, 623429 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
CQ bit was unchecked.
Message was sent while issue was closed.
Description was changed from ========== Fix tests in ShelfLayoutManagerTest when MD is enable When ash-md is set to MATERIAL_EXPERIMENTAL by default, shelf has a visible height of 0 whereas the visible height is 3 for non-MD. Updated test cases GestureDrag, SetAlignment and AutoHide to match the new value. BUG=623432, 623430, 623429 ========== to ========== Fix tests in ShelfLayoutManagerTest when MD is enable When ash-md is set to MATERIAL_EXPERIMENTAL by default, shelf has a visible height of 0 whereas the visible height is 3 for non-MD. Updated test cases GestureDrag, SetAlignment and AutoHide to match the new value. BUG=623432, 623430, 623429 Committed: https://crrev.com/b7a57976c42de5959d7a45cc9133864b45cf3399 Cr-Commit-Position: refs/heads/master@{#405962} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/b7a57976c42de5959d7a45cc9133864b45cf3399 Cr-Commit-Position: refs/heads/master@{#405962} |