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

Unified Diff: chrome/browser/app_controller_mac_unittest.mm

Issue 199031: Add "New Window" and "New Incognito Window" items to the Dock Menu.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac_unittest.mm
===================================================================
--- chrome/browser/app_controller_mac_unittest.mm (revision 0)
+++ chrome/browser/app_controller_mac_unittest.mm (revision 0)
@@ -0,0 +1,26 @@
+// 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.
+
+#import <Cocoa/Cocoa.h>
+
+#include "chrome/app/chrome_dll_resource.h"
+#import "chrome/browser/app_controller_mac.h"
+#include "testing/platform_test.h"
+
+class AppControllerTest : public PlatformTest {
+};
+
+TEST_F(AppControllerTest, DockMenu) {
+ AppController* ac = [[AppController alloc] init];
+ NSMenu* menu = [ac applicationDockMenu:NSApp];
+ NSMenuItem* item;
+
+ EXPECT_TRUE(menu);
+ EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_WINDOW]);
+ EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_INCOGNITO_WINDOW]);
+ for (item in [menu itemArray]) {
+ EXPECT_EQ(ac, [item target]);
+ EXPECT_EQ(@selector(commandDispatch:), [item action]);
+ }
+}
Property changes on: chrome/browser/app_controller_mac_unittest.mm
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698