Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: ui/views/widget/native_widget_aura_unittest.cc

Issue 1130033003: Make the minimize state work when creating a chrome window in CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test case Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e0ba98ca108e713205717793275a7439a4c75bf8 100644
--- a/ui/views/widget/native_widget_aura_unittest.cc
+++ b/ui/views/widget/native_widget_aura_unittest.cc
@@ -100,6 +100,18 @@ TEST_F(NativeWidgetAuraTest, CenterWindowSmallParentNotAtOrigin) {
widget->CloseNow();
}
+TEST_F(NativeWidgetAuraTest, MinimizedStateTest) {
+ scoped_ptr<aura::Window> parent(new aura::Window(NULL));
+ parent->Init(ui::LAYER_NOT_DRAWN);
+ parent->SetBounds(gfx::Rect(0, 0, 1024, 800));
+ scoped_ptr<Widget> widget(new Widget());
+ NativeWidgetAura* window = Init(parent.get(), widget.get());
+ window->ShowWithWindowState(ui::SHOW_STATE_MINIMIZED);
sadrul 2015/06/12 21:53:49 Can you instead do: Widget::InitParams params(T
joone 2015/06/12 23:51:40 Done.
+
+ EXPECT_TRUE(window->IsMinimized());
+ widget->CloseNow();
+}
+
class TestLayoutManagerBase : public aura::LayoutManager {
public:
TestLayoutManagerBase() {}
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698