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

Unified Diff: trunk/src/ash/wm/caption_buttons/frame_maximize_button_unittest.cc

Issue 165283003: Revert 251206 "Fixes crashes wrt to the maximize button when:" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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 | « trunk/src/ash/wm/caption_buttons/frame_maximize_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ash/wm/caption_buttons/frame_maximize_button_unittest.cc
===================================================================
--- trunk/src/ash/wm/caption_buttons/frame_maximize_button_unittest.cc (revision 251215)
+++ trunk/src/ash/wm/caption_buttons/frame_maximize_button_unittest.cc (working copy)
@@ -750,36 +750,6 @@
EXPECT_FALSE(window_state->HasRestoreBounds());
}
-// Test hovering over the minimize button in the help bubble then tapping the
-// snap left button.
-TEST_F(FrameMaximizeButtonTest, MaximizeBubbleMouseHoverAndTouch) {
- aura::Window* window = widget()->GetNativeWindow();
- ash::FrameMaximizeButton* maximize_button =
- FrameMaximizeButtonTest::maximize_button();
- maximize_button->set_bubble_appearance_delay_ms(0);
-
- // Move the mouse cursor over the maximize button to make the help bubble
- // appear.
- aura::test::EventGenerator generator(window->GetRootWindow());
- generator.MoveMouseTo(maximize_button->GetBoundsInScreen().CenterPoint());
- MaximizeBubbleController* maximizer = maximize_button->maximizer();
- ASSERT_TRUE(maximizer);
-
- // Move the mouse cursor over the minimize button in the help bubble.
- gfx::Point minimize_pos = maximizer->GetButtonForUnitTest(SNAP_MINIMIZE)->
- GetBoundsInScreen().CenterPoint();
- generator.MoveMouseTo(minimize_pos);
-
- // Tap the snap left button in the help bubble.
- gfx::Point snap_pos = maximizer->GetButtonForUnitTest(SNAP_LEFT)->
- GetBoundsInScreen().CenterPoint();
- generator.GestureTapAt(snap_pos);
- internal::SnapSizer sizer(wm::GetWindowState(window), gfx::Point(),
- internal::SnapSizer::LEFT_EDGE,
- internal::SnapSizer::OTHER_INPUT);
- EXPECT_EQ(sizer.target_bounds().ToString(), window->bounds().ToString());
-}
-
// Test that minimizing the window per keyboard closes the maximize bubble.
TEST_F(FrameMaximizeButtonTest, MinimizePerKeyClosesBubble) {
aura::Window* window = widget()->GetNativeWindow();
« no previous file with comments | « trunk/src/ash/wm/caption_buttons/frame_maximize_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698