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

Unified Diff: views/view_unittest.cc

Issue 7044016: Replace ButtonDropDown menu implementation (Menu2) with MenuItemView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One last little style fix. Created 9 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 | « views/controls/menu/menu_model_adapter_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view_unittest.cc
diff --git a/views/view_unittest.cc b/views/view_unittest.cc
index 263fc6647d582453944fb7b9eb27fef722c31ac3..8ea2fc7da9d6ce88225fa6d267381f063f618f4c 100644
--- a/views/view_unittest.cc
+++ b/views/view_unittest.cc
@@ -1413,22 +1413,6 @@ TEST_F(ButtonDropDownTest, RegularClickTest) {
EXPECT_EQ(test_dialog_->last_pressed_button_, test_dialog_->button_drop_);
}
-#if defined(OS_WIN)
-// Ensure that dragging downwards on the button shows the menu while keeping the
-// button depressed.
-TEST_F(ButtonDropDownTest, DragMenuTest) {
- test_dialog_->last_pressed_button_ = NULL;
- MouseEvent press_event(ui::ET_MOUSE_PRESSED, 1, 1, ui::EF_LEFT_BUTTON_DOWN);
- MouseEvent drag_event(ui::ET_MOUSE_DRAGGED, 1, 99, ui::EF_LEFT_BUTTON_DOWN);
- test_dialog_->ExpectShowDropMenu();
- button_as_view_->OnMousePressed(press_event);
- button_as_view_->OnMouseDragged(drag_event);
- // The button should not get a press event as a result of the drag. This would
- // revert the button into an unpressed state while the menu is open.
- EXPECT_TRUE(test_dialog_->last_pressed_button_ == NULL);
-}
-#endif
-
////////////////////////////////////////////////////////////////////////////////
// View hierarchy / Visibility changes
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « views/controls/menu/menu_model_adapter_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698