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

Unified Diff: ash/app_list/app_list_presenter_delegate_unittest.cc

Issue 2938203004: Revert of Added HALF, FULLSCREEN_ALL_APPS, and FULLSCREEN_SEARCH. (Closed)
Patch Set: Created 3 years, 6 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
Index: ash/app_list/app_list_presenter_delegate_unittest.cc
diff --git a/ash/app_list/app_list_presenter_delegate_unittest.cc b/ash/app_list/app_list_presenter_delegate_unittest.cc
index 42eaa1309f31e61eaa4f1b3f6c3277d04d1b6c8e..3d27aa205351cc189a8ce97e44cd16a07998ffb2 100644
--- a/ash/app_list/app_list_presenter_delegate_unittest.cc
+++ b/ash/app_list/app_list_presenter_delegate_unittest.cc
@@ -189,6 +189,28 @@
EXPECT_GE(app_list_view_top, kMinimalAppListMargin);
}
+// Tests that the peeking app list is enlarged to fullscreen after the user
+// types in the search box.
+TEST_F(AppListPresenterDelegateTest, SnapToFullscreenAfterSearchboxInput) {
+ // TODO(newcomer): investigate failure in mash. http://crbug.com/726838.
+ if (Shell::GetAshConfig() == Config::MASH)
+ return;
+
+ EnableFullscreenAppList();
+ UpdateDisplay("1024x768");
+ EXPECT_TRUE(app_list::features::IsFullscreenAppListEnabled());
+ app_list_presenter_impl()->Show(GetPrimaryDisplayId());
+ app_list::AppListView* app_list = app_list_presenter_impl()->GetView();
+ // Check that it is in peeking mode.
+ EXPECT_FALSE(app_list->is_fullscreen());
+
+ // Dummy key event to search box.
+ ui::test::EventGenerator& generator = GetEventGenerator();
+ generator.PressKey(ui::KeyboardCode::VKEY_0, 0);
+ // Check that it is in fullscreen mode.
+ EXPECT_TRUE(app_list->is_fullscreen());
+}
+
// Tests that the peeking app list closes if the user taps outside its
// bounds.
TEST_F(AppListPresenterDelegateTest, TapAndClickOutsideClosesPeekingAppList) {
« no previous file with comments | « ash/app_list/app_list_presenter_delegate.cc ('k') | chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698