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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import <Cocoa/Cocoa.h>
6
7 #include "chrome/app/chrome_dll_resource.h"
8 #import "chrome/browser/app_controller_mac.h"
9 #include "testing/platform_test.h"
10
11 class AppControllerTest : public PlatformTest {
12 };
13
14 TEST_F(AppControllerTest, DockMenu) {
15 AppController* ac = [[AppController alloc] init];
16 NSMenu* menu = [ac applicationDockMenu:NSApp];
17 NSMenuItem* item;
18
19 EXPECT_TRUE(menu);
20 EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_WINDOW]);
21 EXPECT_NE(-1, [menu indexOfItemWithTag:IDC_NEW_INCOGNITO_WINDOW]);
22 for (item in [menu itemArray]) {
23 EXPECT_EQ(ac, [item target]);
24 EXPECT_EQ(@selector(commandDispatch:), [item action]);
25 }
26 }
OLDNEW
« 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