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

Unified Diff: athena/home/home_card_unittest.cc

Issue 503113002: Allows directly entering to VISIBLE_CENTERED state from gesture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years, 4 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 | « athena/home/home_card_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/home/home_card_unittest.cc
diff --git a/athena/home/home_card_unittest.cc b/athena/home/home_card_unittest.cc
index 92daeba696b9ee1fae95314f2d62287d03bad9c9..6952cbae73a0b73f9215c01c10aea4b2be5c6267 100644
--- a/athena/home/home_card_unittest.cc
+++ b/athena/home/home_card_unittest.cc
@@ -182,4 +182,20 @@ TEST_F(HomeCardTest, Gestures) {
}
+TEST_F(HomeCardTest, GesturesToFullDirectly) {
+ ASSERT_EQ(HomeCard::VISIBLE_MINIMIZED, HomeCard::Get()->GetState());
+ ui::test::EventGenerator generator(root_window());
+ gfx::Rect screen_rect(root_window()->bounds());
+
+ const int bottom = screen_rect.bottom();
+ const int x = screen_rect.x() + 1;
+
+ generator.GestureScrollSequence(gfx::Point(x, bottom - 1),
+ gfx::Point(x, 20),
+ base::TimeDelta::FromSeconds(1),
+ 10);
+ EXPECT_EQ(HomeCard::VISIBLE_CENTERED, HomeCard::Get()->GetState());
+ EXPECT_TRUE(WindowManager::GetInstance()->IsOverviewModeActive());
+}
+
} // namespace athena
« no previous file with comments | « athena/home/home_card_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698