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

Side by Side Diff: chrome/test/data/webui/settings/quick_unlock_authenticate_browsertest_chromeos.js

Issue 2639373002: MD Settings: clean up text controls (links, buttons) (Closed)
Patch Set: move comment about action_link_css to action_likn_css.html Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 cr.define('settings_people_page_quick_unlock', function() { 5 cr.define('settings_people_page_quick_unlock', function() {
6 var element = null; 6 var element = null;
7 var quickUnlockPrivateApi = null; 7 var quickUnlockPrivateApi = null;
8 var QuickUnlockMode = chrome.quickUnlockPrivate.QuickUnlockMode; 8 var QuickUnlockMode = chrome.quickUnlockPrivate.QuickUnlockMode;
9 var fakeUma = null; 9 var fakeUma = null;
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 document.body.appendChild(element); 230 document.body.appendChild(element);
231 Polymer.dom.flush(); 231 Polymer.dom.flush();
232 232
233 element.setModes_ = 233 element.setModes_ =
234 quickUnlockPrivateApi.setModes.bind(quickUnlockPrivateApi, ''); 234 quickUnlockPrivateApi.setModes.bind(quickUnlockPrivateApi, '');
235 235
236 passwordRadioButton = 236 passwordRadioButton =
237 getFromElement('paper-radio-button[name="password"]'); 237 getFromElement('paper-radio-button[name="password"]');
238 pinPasswordRadioButton = 238 pinPasswordRadioButton =
239 getFromElement('paper-radio-button[name="pin+password"]'); 239 getFromElement('paper-radio-button[name="pin+password"]');
240 configureButton = getFromElement('paper-button'); 240 configureButton = getFromElement('a[is="action-link"]');
241 241
242 done(); 242 done();
243 }); 243 });
244 }); 244 });
245 245
246 // Showing the choose method screen does not make any destructive pref or 246 // Showing the choose method screen does not make any destructive pref or
247 // quickUnlockPrivate calls. 247 // quickUnlockPrivate calls.
248 test('ShowingScreenDoesNotModifyPrefs', function() { 248 test('ShowingScreenDoesNotModifyPrefs', function() {
249 assertTrue(getLockScreenPref()); 249 assertTrue(getLockScreenPref());
250 assertRadioButtonActive(passwordRadioButton); 250 assertRadioButtonActive(passwordRadioButton);
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 }); 498 });
499 }); 499 });
500 } 500 }
501 501
502 return { 502 return {
503 registerAuthenticateTests: registerAuthenticateTests, 503 registerAuthenticateTests: registerAuthenticateTests,
504 registerLockScreenTests: registerLockScreenTests, 504 registerLockScreenTests: registerLockScreenTests,
505 registerSetupPinDialogTests: registerSetupPinDialogTests 505 registerSetupPinDialogTests: registerSetupPinDialogTests
506 }; 506 };
507 }); 507 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698