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

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

Issue 1483083003: Set the window state consistently Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/widget.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/widget_unittest.cc
diff --git a/ui/views/widget/widget_unittest.cc b/ui/views/widget/widget_unittest.cc
index 396b06e561dab465ac270cf0a82ef16fa9d5970d..4ff52e892669662acb4286b0607ccf51ab7e7037 100644
--- a/ui/views/widget/widget_unittest.cc
+++ b/ui/views/widget/widget_unittest.cc
@@ -1007,12 +1007,6 @@ TEST_F(WidgetTest, GetWindowPlacement) {
native_widget->GetWindowPlacement(&restored_bounds, &show_state);
EXPECT_EQ(expected_bounds, restored_bounds);
-#if defined(OS_LINUX)
- // Non-desktop/Ash widgets start off in "default" until a Restore().
- EXPECT_EQ(ui::SHOW_STATE_DEFAULT, show_state);
- widget->Restore();
- native_widget->GetWindowPlacement(&restored_bounds, &show_state);
-#endif
EXPECT_EQ(ui::SHOW_STATE_NORMAL, show_state);
widget->Minimize();
« no previous file with comments | « ui/views/widget/widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698