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

Unified Diff: ui/views/cocoa/bridged_native_widget_unittest.mm

Issue 927233003: MacViews: Fix positioning of top-level Widgets with parents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150129-MacViews-Bringup5
Patch Set: Use kWindowSizeDeterminedLater Created 5 years, 10 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
Index: ui/views/cocoa/bridged_native_widget_unittest.mm
diff --git a/ui/views/cocoa/bridged_native_widget_unittest.mm b/ui/views/cocoa/bridged_native_widget_unittest.mm
index 0ca3ec10dd4f3df7c4c5dd943ec65b87e514ba39..ffbd425461c601033b119c126615f98a56aadb63 100644
--- a/ui/views/cocoa/bridged_native_widget_unittest.mm
+++ b/ui/views/cocoa/bridged_native_widget_unittest.mm
@@ -112,6 +112,10 @@ class BridgedNativeWidgetTestBase : public ui::CocoaTest {
init_params_.native_widget = native_widget_mac_;
+ // Use a frameless window, otherwise Widget will try to center the window
+ // before the tests covering the Init() flow are ready to do that.
+ init_params_.type = Widget::InitParams::TYPE_WINDOW_FRAMELESS;
+
// To control the lifetime without an actual window that must be closed,
// tests in this file need to use WIDGET_OWNS_NATIVE_WIDGET.
init_params_.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;

Powered by Google App Engine
This is Rietveld 408576698