OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |