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

Unified Diff: chrome/browser/ui/panels/base_panel_browser_test.cc

Issue 8602007: Panels: Disable auto-resize if initial size is specified during creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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: chrome/browser/ui/panels/base_panel_browser_test.cc
diff --git a/chrome/browser/ui/panels/base_panel_browser_test.cc b/chrome/browser/ui/panels/base_panel_browser_test.cc
index b32573758af0536ce0ef51589db48cb394995086..626d6b731ca4a2c5eee6f0120188ba3659907e24 100644
--- a/chrome/browser/ui/panels/base_panel_browser_test.cc
+++ b/chrome/browser/ui/panels/base_panel_browser_test.cc
@@ -283,6 +283,11 @@ Panel* BasePanelBrowserTest::CreatePanelWithParams(
Panel* panel = static_cast<Panel*>(panel_browser->window());
+ if (params.bounds.width() || params.bounds.height())
+ EXPECT_FALSE(panel->auto_resizable());
+ else
+ EXPECT_TRUE(panel->auto_resizable());
+
if (params.show_flag == SHOW_AS_ACTIVE) {
panel->Show();
} else {

Powered by Google App Engine
This is Rietveld 408576698