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