From 428b68334d74983aa9914373a8b28d9602f9ceec Mon Sep 17 00:00:00 2001 From: "oshima@chromium.org" Date: Mon, 5 Apr 2010 22:02:39 +0000 Subject: Revert the unnecessary change. I forgot to remove this test code when I created the cl. BUG=39736 TEST=interactive_ui_tests shoudl cycle green TBR=sky@chromium.org Review URL: http://codereview.chromium.org/1602009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43658 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/bookmark_bar_view_test.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/chrome/browser/views/bookmark_bar_view_test.cc b/chrome/browser/views/bookmark_bar_view_test.cc index 4f37018..78fccfe 100644 --- a/chrome/browser/views/bookmark_bar_view_test.cc +++ b/chrome/browser/views/bookmark_bar_view_test.cc @@ -912,12 +912,6 @@ VIEW_TEST(BookmarkBarViewTest10, MAYBE_KeyEvents) // effectively verifies we maintain mouse capture after the context menu is // hidden. class BookmarkBarViewTest11 : public BookmarkBarViewEventTestBase { - public: - BookmarkBarViewTest11() - : ALLOW_THIS_IN_INITIALIZER_LIST( - observer_(CreateEventTask(this, &BookmarkBarViewTest11::Step3))) { - } - protected: virtual void DoTestOnMessageLoop() { // Move the mouse to the first folder on the bookmark bar and press the @@ -941,8 +935,8 @@ class BookmarkBarViewTest11 : public BookmarkBarViewEventTestBase { // Right click on the first child to get its context menu. ui_controls::MoveMouseToCenterAndPress(child_menu, ui_controls::RIGHT, - ui_controls::DOWN | ui_controls::UP, NULL); - // Step3 will be invoked by ContextMenuNotificationObserver. + ui_controls::DOWN | ui_controls::UP, + CreateEventTask(this, &BookmarkBarViewTest11::Step3)); } void Step3() { @@ -978,8 +972,6 @@ class BookmarkBarViewTest11 : public BookmarkBarViewEventTestBase { !menu->GetSubmenu()->IsShowing()); Done(); } - - ContextMenuNotificationObserver observer_; }; VIEW_TEST(BookmarkBarViewTest11, CloseMenuAfterClosingContextMenu) -- cgit v1.1