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

Unified Diff: ash/wm/window_positioner_unittest.cc

Issue 62333015: Ensure that the first browser window which is created in Windows 8 ASH is maximized. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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
Index: ash/wm/window_positioner_unittest.cc
===================================================================
--- ash/wm/window_positioner_unittest.cc (revision 234596)
+++ ash/wm/window_positioner_unittest.cc (working copy)
@@ -44,8 +44,12 @@
views::Widget* widget =
shell::ToplevelWindow::CreateToplevelWindow(params);
gfx::Rect bounds = widget->GetWindowBoundsInScreen();
+#if defined(OS_WIN)
+ EXPECT_TRUE(widget->IsMaximized());
+#else
// The window should be in the 2nd display with the default size.
EXPECT_EQ("300x300", bounds.size().ToString());
+#endif
EXPECT_TRUE(Shell::GetScreen()->GetDisplayNearestWindow(
second_root_window).bounds().Contains(bounds));
}

Powered by Google App Engine
This is Rietveld 408576698