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

Unified Diff: chrome/browser/cocoa/tab_view_unittest.mm

Issue 500030: Factor tab context menu into a shared model and fix mac and win to use it. Im... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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/cocoa/tab_view_unittest.mm
===================================================================
--- chrome/browser/cocoa/tab_view_unittest.mm (revision 34596)
+++ chrome/browser/cocoa/tab_view_unittest.mm (working copy)
@@ -41,4 +41,9 @@
// TODO(pinkerton): Test dragging out of window
}
+// Test it doesn't crash when asked for its menu with no TabController set.
+TEST_F(TabViewTest, Menu) {
+ EXPECT_FALSE([view_ menu]);
+}
+
} // namespace

Powered by Google App Engine
This is Rietveld 408576698