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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm
diff --git a/chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm b/chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm
index e667d9c2b961e2c214d8fa8da5e7aad41e3cafcf..9087b35d035b52f062ad6eac44e1b07a4d83f6c2 100644
--- a/chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm
+++ b/chrome/browser/ui/panels/panel_browser_window_cocoa_unittest.mm
@@ -308,3 +308,15 @@ TEST_F(PanelBrowserWindowCocoaTest, MenuItems) {
ClosePanelAndWait(panel->browser());
}
+
+// Verify that the theme provider is properly plumbed through.
+TEST_F(PanelBrowserWindowCocoaTest, ThemeProvider) {
+ Panel* panel = CreateTestPanel("Test Panel");
+ ASSERT_TRUE(panel);
+
+ PanelBrowserWindowCocoa* native_window =
+ static_cast<PanelBrowserWindowCocoa*>(panel->native_panel());
+ ASSERT_TRUE(native_window);
+ EXPECT_TRUE(NULL != [[native_window->controller_ window] themeProvider]);
+ ClosePanelAndWait(panel->browser());
+}
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.

Powered by Google App Engine
This is Rietveld 408576698