Index: ash/wm/base_layout_manager_unittest.cc |
diff --git a/ash/wm/base_layout_manager_unittest.cc b/ash/wm/base_layout_manager_unittest.cc |
index c0cd326519164c014a854c340cbbee42235cd553..19df383772878ec0eadf3f49afbe7d83a1eadae4 100644 |
--- a/ash/wm/base_layout_manager_unittest.cc |
+++ b/ash/wm/base_layout_manager_unittest.cc |
@@ -57,6 +57,18 @@ TEST_F(BaseLayoutManagerTest, Maximize) { |
EXPECT_EQ(bounds, window->bounds()); |
} |
+// Tests normal->minimize->normal. |
+TEST_F(BaseLayoutManagerTest, Minimize) { |
+ gfx::Rect bounds(100, 100, 200, 200); |
+ scoped_ptr<aura::Window> window(CreateTestWindow(bounds)); |
+ window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MINIMIZED); |
+ // Note: Currently minimize doesn't do anything except set the state. |
+ // See crbug.com/104571. |
+ EXPECT_EQ(bounds, window->bounds()); |
+ window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); |
+ EXPECT_EQ(bounds, window->bounds()); |
+} |
+ |
// Tests maximized window size during root window resize. |
TEST_F(BaseLayoutManagerTest, MaximizeRootWindowResize) { |
gfx::Rect bounds(100, 100, 200, 200); |