| Index: athena/home/home_card_gesture_manager_unittest.cc
|
| diff --git a/athena/home/home_card_gesture_manager_unittest.cc b/athena/home/home_card_gesture_manager_unittest.cc
|
| index 06dc792fdf97951af29efb36afd76dc5624e1542..409a24957aa719374df6f4886d3b954eab552e2f 100644
|
| --- a/athena/home/home_card_gesture_manager_unittest.cc
|
| +++ b/athena/home/home_card_gesture_manager_unittest.cc
|
| @@ -168,4 +168,16 @@ TEST_F(HomeCardGestureManagerTest, FlingDownAtEnd) {
|
| EXPECT_EQ(HomeCard::VISIBLE_BOTTOM, final_state_);
|
| }
|
|
|
| +TEST_F(HomeCardGestureManagerTest, WeakFling) {
|
| + EXPECT_TRUE(ProcessGestureEvent(ui::ET_GESTURE_SCROLL_BEGIN, 1020));
|
| + EXPECT_EQ(0, GetEndCountAndReset());
|
| + EXPECT_EQ(0, GetProgressCountAndReset());
|
| +
|
| + ProcessGestureEvent(ui::ET_GESTURE_SCROLL_UPDATE, 1010);
|
| + ProcessGestureEvent(ui::ET_GESTURE_SCROLL_UPDATE, 800);
|
| + ProcessFlingGesture(-30.0f);
|
| + EXPECT_EQ(1, GetEndCountAndReset());
|
| + EXPECT_EQ(HomeCard::VISIBLE_BOTTOM, final_state_);
|
| +}
|
| +
|
| } // namespace athena
|
|
|