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

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_gaia_signin.js

Issue 2737733003: Add Active Directory login UI tests (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
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 /** 5 /**
6 * @fileoverview Oobe signin screen implementation. 6 * @fileoverview Oobe signin screen implementation.
7 */ 7 */
8 8
9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() {
10 // GAIA animation guard timer. Started when GAIA page is loaded 10 // GAIA animation guard timer. Started when GAIA page is loaded
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 this.loading = !show; 1113 this.loading = !show;
1114 1114
1115 if (show) 1115 if (show)
1116 $('gaia-whitelist-error').submitButton.focus(); 1116 $('gaia-whitelist-error').submitButton.focus();
1117 else 1117 else
1118 Oobe.showSigninUI(); 1118 Oobe.showSigninUI();
1119 1119
1120 this.updateControlsState(); 1120 this.updateControlsState();
1121 }, 1121 },
1122 1122
1123 invalidateAd: function(username) { 1123 invalidateAd: function(username, errorState) {
achuithb 2017/03/07 15:07:04 Where is this used in the test?
Roman Sorokin (ftl) 2017/03/07 16:32:05 GaiaScreenHandler passes it depending on answer fr
1124 if (this.screenMode_ != ScreenMode.AD_AUTH) 1124 if (this.screenMode_ != ScreenMode.AD_AUTH)
1125 return; 1125 return;
1126 var adAuthUI = this.getSigninFrame_(); 1126 var adAuthUI = this.getSigninFrame_();
1127 adAuthUI.setUser(username); 1127 adAuthUI.setUser(username);
1128 adAuthUI.setInvalid(ACTIVE_DIRECTORY_ERROR_STATE.BAD_PASSWORD); 1128 adAuthUI.setInvalid(errorState);
1129 this.loading = false; 1129 this.loading = false;
1130 Oobe.getInstance().headerHidden = false;
1130 } 1131 }
1131 }; 1132 };
1132 }); 1133 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698