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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm

Issue 7734003: Implement basic theming for panel titlebars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698