blob: 1851ecb39af6e59f65dfff28556ec5fce8a1b125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (c) 2011 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/memory/scoped_ptr.h"
#include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
#include "chrome/browser/ui/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];
}
|