| Index: ash/accelerators/accelerator_controller_unittest.cc
|
| diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
|
| index 4a98b0e0f0ade7aca79f3464030cec0c3ebefa10..de38a7f4bc4219a47e2145f6482bd0a4af1bf1a4 100644
|
| --- a/ash/accelerators/accelerator_controller_unittest.cc
|
| +++ b/ash/accelerators/accelerator_controller_unittest.cc
|
| @@ -504,7 +504,7 @@ TEST_F(AcceleratorControllerTest, WindowSnap) {
|
| EXPECT_EQ(window->bounds().ToString(), snap_right.ToString());
|
| }
|
| {
|
| - gfx::Rect normal_bounds = window->bounds();
|
| + gfx::Rect normal_bounds = window_state->GetRestoreBoundsInParent();
|
|
|
| GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy);
|
| EXPECT_TRUE(window_state->IsMaximized());
|
| @@ -512,6 +512,8 @@ TEST_F(AcceleratorControllerTest, WindowSnap) {
|
|
|
| GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy);
|
| EXPECT_FALSE(window_state->IsMaximized());
|
| + // Window gets restored to its restore bounds since side-maximized state
|
| + // is treated as a "maximized" state.
|
| EXPECT_EQ(normal_bounds.ToString(), window->bounds().ToString());
|
|
|
| GetController()->PerformAction(TOGGLE_MAXIMIZED, dummy);
|
|
|