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

Unified Diff: ui/message_center/cocoa/status_item_view_unittest.mm

Issue 16073003: [Mac][MC] Allow right click to open the message center tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove DCHECKs Created 7 years, 7 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 | « ui/message_center/cocoa/status_item_view.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/cocoa/status_item_view_unittest.mm
diff --git a/ui/message_center/cocoa/status_item_view_unittest.mm b/ui/message_center/cocoa/status_item_view_unittest.mm
index 075e23a5d9a7829e62bb0f3d48da446314b02612..4e985b91522e287275c8d24d945cf51c856149cb 100644
--- a/ui/message_center/cocoa/status_item_view_unittest.mm
+++ b/ui/message_center/cocoa/status_item_view_unittest.mm
@@ -40,6 +40,17 @@ TEST_F(StatusItemViewTest, Callback) {
}];
[view_ mouseDown:nil];
EXPECT_TRUE(got_callback);
+ [view_ mouseUp:nil];
+
+ got_callback = NO;
+ [view_ rightMouseDown:nil];
+ EXPECT_TRUE(got_callback);
+ [view_ rightMouseUp:nil];
+
+ got_callback = NO;
+ [view_ otherMouseDown:nil];
+ EXPECT_TRUE(got_callback);
+ [view_ otherMouseUp:nil];
}
TEST_F(StatusItemViewTest, UnreadCount) {
« no previous file with comments | « ui/message_center/cocoa/status_item_view.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698