1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/memory/scoped_ptr.h" 6 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" 7 #include "chrome/browser/ui/cocoa/info_bubble_window.h" 8 9 class InfoBubbleWindowTest : public CocoaTest {}; 10 11 TEST_F(InfoBubbleWindowTest, Basics) { 12 InfoBubbleWindow* window = 13 [[InfoBubbleWindow alloc] initWithContentRect:NSMakeRect(0, 0, 10, 10) 14 styleMask:NSBorderlessWindowMask 15 backing:NSBackingStoreBuffered 16 defer:NO]; 17 EXPECT_TRUE([window canBecomeKeyWindow]); 18 EXPECT_FALSE([window canBecomeMainWindow]); 19 20 EXPECT_TRUE([window isExcludedFromWindowsMenu]); 21 [window close]; 22 } 23