OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/string_number_conversions.h" | 5 #include "base/string_number_conversions.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/automation/ui_controls.h" | 8 #include "chrome/browser/automation/ui_controls.h" |
9 #include "chrome/browser/bookmarks/bookmark_model.h" | 9 #include "chrome/browser/bookmarks/bookmark_model.h" |
10 #include "chrome/browser/bookmarks/bookmark_utils.h" | 10 #include "chrome/browser/bookmarks/bookmark_utils.h" |
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 // Menu should be showing. | 1354 // Menu should be showing. |
1355 views::MenuItemView* menu = bb_view_->GetMenu(); | 1355 views::MenuItemView* menu = bb_view_->GetMenu(); |
1356 ASSERT_TRUE(menu != NULL); | 1356 ASSERT_TRUE(menu != NULL); |
1357 ASSERT_TRUE(menu->GetSubmenu()->IsShowing()); | 1357 ASSERT_TRUE(menu->GetSubmenu()->IsShowing()); |
1358 | 1358 |
1359 // Button should be depressed. | 1359 // Button should be depressed. |
1360 views::TextButton* button = bb_view_->GetBookmarkButton(0); | 1360 views::TextButton* button = bb_view_->GetBookmarkButton(0); |
1361 ASSERT_TRUE(button->state() == views::CustomButton::BS_PUSHED); | 1361 ASSERT_TRUE(button->state() == views::CustomButton::BS_PUSHED); |
1362 | 1362 |
1363 // Close the window. | 1363 // Close the window. |
1364 window_->CloseWindow(); | 1364 window_->Close(); |
1365 window_ = NULL; | 1365 window_ = NULL; |
1366 } | 1366 } |
1367 }; | 1367 }; |
1368 | 1368 |
1369 // Disabled, http://crbug.com/64303. | 1369 // Disabled, http://crbug.com/64303. |
1370 VIEW_TEST(BookmarkBarViewTest16, DISABLED_DeleteMenu) | 1370 VIEW_TEST(BookmarkBarViewTest16, DISABLED_DeleteMenu) |
1371 | 1371 |
1372 // Makes sure right clicking on an item while a context menu is already showing | 1372 // Makes sure right clicking on an item while a context menu is already showing |
1373 // doesn't crash and works. | 1373 // doesn't crash and works. |
1374 class BookmarkBarViewTest17 : public BookmarkBarViewEventTestBase { | 1374 class BookmarkBarViewTest17 : public BookmarkBarViewEventTestBase { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 | 1435 |
1436 bb_view_->GetMenu()->GetMenuController()->CancelAll(); | 1436 bb_view_->GetMenu()->GetMenuController()->CancelAll(); |
1437 | 1437 |
1438 Done(); | 1438 Done(); |
1439 } | 1439 } |
1440 | 1440 |
1441 ContextMenuNotificationObserver observer_; | 1441 ContextMenuNotificationObserver observer_; |
1442 }; | 1442 }; |
1443 | 1443 |
1444 VIEW_TEST(BookmarkBarViewTest17, ContextMenus3) | 1444 VIEW_TEST(BookmarkBarViewTest17, ContextMenus3) |
OLD | NEW |