Index: ui/views/widget/native_widget_aura_unittest.cc |
diff --git a/ui/views/widget/native_widget_aura_unittest.cc b/ui/views/widget/native_widget_aura_unittest.cc |
index 910718b2863fcd30cfdbaadd60a377f2a249258f..5d001b92ebfbf59e39e1d13713522a61d727b0b8 100644 |
--- a/ui/views/widget/native_widget_aura_unittest.cc |
+++ b/ui/views/widget/native_widget_aura_unittest.cc |
@@ -100,6 +100,21 @@ TEST_F(NativeWidgetAuraTest, CenterWindowSmallParentNotAtOrigin) { |
widget->CloseNow(); |
} |
+TEST_F(NativeWidgetAuraTest, CreateMinimized) { |
+ Widget::InitParams params(Widget::InitParams::TYPE_WINDOW); |
+ params.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; |
+ params.parent = NULL; |
+ params.context = root_window(); |
+ params.show_state = ui::SHOW_STATE_MINIMIZED; |
+ params.bounds.SetRect(0, 0, 1024, 800); |
+ scoped_ptr<Widget> widget(new Widget()); |
+ widget->Init(params); |
+ widget->Show(); |
+ |
+ EXPECT_TRUE(widget->IsMinimized()); |
+ widget->CloseNow(); |
+} |
+ |
class TestLayoutManagerBase : public aura::LayoutManager { |
public: |
TestLayoutManagerBase() {} |