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

Unified Diff: ui/views/controls/button/menu_button_unittest.cc

Issue 404213003: [WIP] Allow scroll events to permanently change the default gesture handler in RootView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: friend test Created 6 years, 5 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: ui/views/controls/button/menu_button_unittest.cc
diff --git a/ui/views/controls/button/menu_button_unittest.cc b/ui/views/controls/button/menu_button_unittest.cc
index a41ac38428521a8e522d1bbeb00ce36d520bd17e..695cffe7881cdbbec0147f22701527458e8b38c2 100644
--- a/ui/views/controls/button/menu_button_unittest.cc
+++ b/ui/views/controls/button/menu_button_unittest.cc
@@ -149,10 +149,10 @@ TEST_F(MenuButtonTest, ActivateNonDropDownOnGestureTap) {
generator.GestureTapAt(gfx::Point(10, 10));
// Check that MenuButton has notified the listener on gesture tap event, while
- // it was in hovered state.
+ // it was in the normal state.
EXPECT_EQ(button(), button_listener->last_sender());
EXPECT_EQ(ui::ET_GESTURE_TAP, button_listener->last_event_type());
- EXPECT_EQ(Button::STATE_HOVERED, button_listener->last_sender_state());
+ EXPECT_EQ(Button::STATE_NORMAL, button_listener->last_sender_state());
}
// Tests if the listener is notified correctly when a mouse click happens on a

Powered by Google App Engine
This is Rietveld 408576698