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

Unified Diff: ui/views/widget/native_widget_mac_unittest.mm

Issue 2735723003: MacViews: Don't switch Spaces when calling ShowInactive() for a child Widget. (Closed)
Patch Set: Created 3 years, 9 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/cocoa/bridged_native_widget.mm ('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_mac_unittest.mm
diff --git a/ui/views/widget/native_widget_mac_unittest.mm b/ui/views/widget/native_widget_mac_unittest.mm
index fd2679da317471faf59276836353505868741842..062984c3cab49302924427a8bb74735efca79a6c 100644
--- a/ui/views/widget/native_widget_mac_unittest.mm
+++ b/ui/views/widget/native_widget_mac_unittest.mm
@@ -1375,6 +1375,9 @@ TEST_F(NativeWidgetMacTest, NativeProperties) {
Widget* bubble_widget = BubbleDialogDelegateView::CreateBubble(bubble_view);
EXPECT_TRUE([bubble_widget->GetNativeWindow() canBecomeKeyWindow]);
EXPECT_FALSE([bubble_widget->GetNativeWindow() canBecomeMainWindow]);
+ EXPECT_EQ(NSWindowCollectionBehaviorTransient,
+ [bubble_widget->GetNativeWindow() collectionBehavior] &
+ NSWindowCollectionBehaviorTransient);
// But a bubble without a parent should still be able to become main.
Widget* toplevel_bubble_widget =
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698