OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/login/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 | 938 |
939 DISALLOW_COPY_AND_ASSIGN(WizardControllerBrokenLocalStateTest); | 939 DISALLOW_COPY_AND_ASSIGN(WizardControllerBrokenLocalStateTest); |
940 }; | 940 }; |
941 | 941 |
942 IN_PROC_BROWSER_TEST_F(WizardControllerBrokenLocalStateTest, | 942 IN_PROC_BROWSER_TEST_F(WizardControllerBrokenLocalStateTest, |
943 LocalStateCorrupted) { | 943 LocalStateCorrupted) { |
944 // Checks that after wizard controller initialization error screen | 944 // Checks that after wizard controller initialization error screen |
945 // in the proper state is displayed. | 945 // in the proper state is displayed. |
946 ASSERT_EQ(GetErrorScreen(), | 946 ASSERT_EQ(GetErrorScreen(), |
947 WizardController::default_controller()->current_screen()); | 947 WizardController::default_controller()->current_screen()); |
948 ASSERT_EQ(ErrorScreen::UI_STATE_LOCAL_STATE_ERROR, | 948 ASSERT_EQ(NetworkError::UI_STATE_LOCAL_STATE_ERROR, |
949 GetErrorScreen()->GetUIState()); | 949 GetErrorScreen()->GetUIState()); |
950 | 950 |
951 WaitUntilJSIsReady(); | 951 WaitUntilJSIsReady(); |
952 | 952 |
953 // Checks visibility of the error message and powerwash button. | 953 // Checks visibility of the error message and powerwash button. |
954 ASSERT_FALSE(JSExecuteBooleanExpression("$('error-message').hidden")); | 954 ASSERT_FALSE(JSExecuteBooleanExpression("$('error-message').hidden")); |
955 ASSERT_TRUE(JSExecuteBooleanExpression( | 955 ASSERT_TRUE(JSExecuteBooleanExpression( |
956 "$('error-message').classList.contains('ui-state-local-state-error')")); | 956 "$('error-message').classList.contains('ui-state-local-state-error')")); |
957 ASSERT_TRUE(JSExecuteBooleanExpression("$('progress-dots').hidden")); | 957 ASSERT_TRUE(JSExecuteBooleanExpression("$('progress-dots').hidden")); |
958 ASSERT_TRUE(JSExecuteBooleanExpression("$('login-header-bar').hidden")); | 958 ASSERT_TRUE(JSExecuteBooleanExpression("$('login-header-bar').hidden")); |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 // TODO(merkulova): Add tests for bluetooth HID detection screen variations when | 1229 // TODO(merkulova): Add tests for bluetooth HID detection screen variations when |
1230 // UI and logic is ready. http://crbug.com/127016 | 1230 // UI and logic is ready. http://crbug.com/127016 |
1231 | 1231 |
1232 // TODO(dzhioev): Add tests for controller/host pairing flow. | 1232 // TODO(dzhioev): Add tests for controller/host pairing flow. |
1233 // http://crbug.com/375191 | 1233 // http://crbug.com/375191 |
1234 | 1234 |
1235 static_assert(BaseScreenDelegate::EXIT_CODES_COUNT == 24, | 1235 static_assert(BaseScreenDelegate::EXIT_CODES_COUNT == 24, |
1236 "tests for new control flow are missing"); | 1236 "tests for new control flow are missing"); |
1237 | 1237 |
1238 } // namespace chromeos | 1238 } // namespace chromeos |
OLD | NEW |