OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "chrome/browser/ui/panels/panel_browser_window_cocoa.h" | 5 #import "chrome/browser/ui/panels/panel_browser_window_cocoa.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
301 EXPECT_TRUE([close_window_menu_item isEnabled]); | 301 EXPECT_TRUE([close_window_menu_item isEnabled]); |
302 EXPECT_TRUE([find_menu_item isEnabled]); | 302 EXPECT_TRUE([find_menu_item isEnabled]); |
303 EXPECT_TRUE([find_previous_menu_item isEnabled]); | 303 EXPECT_TRUE([find_previous_menu_item isEnabled]); |
304 EXPECT_TRUE([find_next_menu_item isEnabled]); | 304 EXPECT_TRUE([find_next_menu_item isEnabled]); |
305 EXPECT_FALSE([fullscreen_menu_item isEnabled]); | 305 EXPECT_FALSE([fullscreen_menu_item isEnabled]); |
306 EXPECT_FALSE([presentation_menu_item isEnabled]); | 306 EXPECT_FALSE([presentation_menu_item isEnabled]); |
307 EXPECT_FALSE([bookmarks_menu_item isEnabled]); | 307 EXPECT_FALSE([bookmarks_menu_item isEnabled]); |
308 | 308 |
309 ClosePanelAndWait(panel->browser()); | 309 ClosePanelAndWait(panel->browser()); |
310 } | 310 } |
311 | |
312 // Verify that the theme provider is properly plumbed through. | |
313 TEST_F(PanelBrowserWindowCocoaTest, ThemeProvider) { | |
314 Panel* panel = CreateTestPanel("Test Panel"); | |
315 ASSERT_TRUE(panel); | |
316 | |
317 PanelBrowserWindowCocoa* native_window = | |
318 static_cast<PanelBrowserWindowCocoa*>(panel->native_panel()); | |
319 ASSERT_TRUE(native_window); | |
320 EXPECT_TRUE(NULL != [[native_window->controller_ window] themeProvider]); | |
321 ClosePanelAndWait(panel->browser()); | |
322 } | |
Dmitry Titov
2011/08/31 01:01:30
We also need a test now that verifies that titleba
dcheng
2011/08/31 23:58:03
Done.
| |
OLD | NEW |