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

Side by Side Diff: chrome/browser/chromeos/login/kiosk_browsertest.cc

Issue 283363006: You should be able to deselect the only user pod in the desktop user manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix leftover rename. reading bot errors helps >.< Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/login/user_pod_row.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "apps/app_window.h" 5 #include "apps/app_window.h"
6 #include "apps/app_window_registry.h" 6 #include "apps/app_window_registry.h"
7 #include "apps/ui/native_app_window.h" 7 #include "apps/ui/native_app_window.h"
8 #include "ash/desktop_background/desktop_background_controller.h" 8 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ash/desktop_background/desktop_background_controller_observer.h" 9 #include "ash/desktop_background/desktop_background_controller_observer.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 static_cast<LoginDisplayHostImpl*>(LoginDisplayHostImpl::default_host()) 470 static_cast<LoginDisplayHostImpl*>(LoginDisplayHostImpl::default_host())
471 ->GetOobeUI()->ShowOobeUI(false); 471 ->GetOobeUI()->ShowOobeUI(false);
472 472
473 // Configure network should bring up lock screen for owner. 473 // Configure network should bring up lock screen for owner.
474 OobeScreenWaiter lock_screen_waiter(OobeDisplay::SCREEN_ACCOUNT_PICKER); 474 OobeScreenWaiter lock_screen_waiter(OobeDisplay::SCREEN_ACCOUNT_PICKER);
475 static_cast<AppLaunchSplashScreenActor::Delegate*>(GetAppLaunchController()) 475 static_cast<AppLaunchSplashScreenActor::Delegate*>(GetAppLaunchController())
476 ->OnConfigureNetwork(); 476 ->OnConfigureNetwork();
477 lock_screen_waiter.Wait(); 477 lock_screen_waiter.Wait();
478 478
479 // There should be only one owner pod on this screen. 479 // There should be only one owner pod on this screen.
480 JsExpect("$('pod-row').isSinglePod"); 480 JsExpect("$('pod-row').alwaysFocusSinglePod");
481 481
482 // A network error screen should be shown after authenticating. 482 // A network error screen should be shown after authenticating.
483 OobeScreenWaiter error_screen_waiter(OobeDisplay::SCREEN_ERROR_MESSAGE); 483 OobeScreenWaiter error_screen_waiter(OobeDisplay::SCREEN_ERROR_MESSAGE);
484 static_cast<AppLaunchSigninScreen::Delegate*>(GetAppLaunchController()) 484 static_cast<AppLaunchSigninScreen::Delegate*>(GetAppLaunchController())
485 ->OnOwnerSigninSuccess(); 485 ->OnOwnerSigninSuccess();
486 error_screen_waiter.Wait(); 486 error_screen_waiter.Wait();
487 487
488 ASSERT_TRUE(GetAppLaunchController()->showing_network_dialog()); 488 ASSERT_TRUE(GetAppLaunchController()->showing_network_dialog());
489 489
490 SimulateNetworkOnline(); 490 SimulateNetworkOnline();
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 content::WindowedNotificationObserver( 1186 content::WindowedNotificationObserver(
1187 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE, 1187 chrome::NOTIFICATION_KIOSK_AUTOLAUNCH_WARNING_VISIBLE,
1188 content::NotificationService::AllSources()).Wait(); 1188 content::NotificationService::AllSources()).Wait();
1189 1189
1190 // Wait for the wallpaper to load. 1190 // Wait for the wallpaper to load.
1191 WaitForWallpaper(); 1191 WaitForWallpaper();
1192 EXPECT_TRUE(wallpaper_loaded()); 1192 EXPECT_TRUE(wallpaper_loaded());
1193 } 1193 }
1194 1194
1195 } // namespace chromeos 1195 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/login/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698