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

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

Issue 2668623002: MD Settings: Fix remaining tests that fail in Vulcanized mode. (Closed)
Patch Set: Fix remaining tests. 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 /** 181 /**
182 * Changes the lock screen pref value using the settings API; this is like 182 * Changes the lock screen pref value using the settings API; this is like
183 * the pref got changed from an unkown source such as another tab. 183 * the pref got changed from an unkown source such as another tab.
184 * @param {boolean} value 184 * @param {boolean} value
185 */ 185 */
186 function setLockScreenPref(value) { 186 function setLockScreenPref(value) {
187 fakeSettings.setPref(ENABLE_LOCK_SCREEN_PREF, value, '', assertTrue); 187 fakeSettings.setPref(ENABLE_LOCK_SCREEN_PREF, value, '', assertTrue);
188 } 188 }
189 189
190 suiteSetup(function() {
191 var urls = [
192 'chrome://md-settings/i18n_setup.html',
193 'chrome://md-settings/prefs/prefs.html',
194 ];
195 return Promise.all(urls.map(PolymerTest.importHtml));
196 });
197
198 setup(function(done) { 190 setup(function(done) {
199 PolymerTest.clearBody(); 191 PolymerTest.clearBody();
200 192
201 CrSettingsPrefs.deferInitialization = true; 193 CrSettingsPrefs.deferInitialization = true;
202 194
203 // Build pref fakes. 195 // Build pref fakes.
204 var fakePrefs = [{ 196 var fakePrefs = [{
205 key: ENABLE_LOCK_SCREEN_PREF, 197 key: ENABLE_LOCK_SCREEN_PREF,
206 type: chrome.settingsPrivate.PrefType.BOOLEAN, 198 type: chrome.settingsPrivate.PrefType.BOOLEAN,
207 value: true 199 value: true
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 }); 485 });
494 }); 486 });
495 } 487 }
496 488
497 return { 489 return {
498 registerAuthenticateTests: registerAuthenticateTests, 490 registerAuthenticateTests: registerAuthenticateTests,
499 registerLockScreenTests: registerLockScreenTests, 491 registerLockScreenTests: registerLockScreenTests,
500 registerSetupPinDialogTests: registerSetupPinDialogTests 492 registerSetupPinDialogTests: registerSetupPinDialogTests
501 }; 493 };
502 }); 494 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698