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

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

Issue 2360873005: MD Settings: Cleanup, remove unnecessary <cr-settings> wrapper. (Closed)
Patch Set: Remove more Created 4 years, 2 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 /** @fileoverview Suite of tests for Easy Unlock within People section. */ 5 /** @fileoverview Suite of tests for Easy Unlock within People section. */
6 6
7 GEN_INCLUDE(['settings_page_browsertest.js']); 7 GEN_INCLUDE(['settings_page_browsertest.js']);
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 easyUnlockSetupButton: '', 127 easyUnlockSetupButton: '',
128 128
129 easyUnlockDescription: '', 129 easyUnlockDescription: '',
130 easyUnlockTurnOffTitle: '', 130 easyUnlockTurnOffTitle: '',
131 easyUnlockTurnOffDescription: '', 131 easyUnlockTurnOffDescription: '',
132 easyUnlockTurnOffButton: '', 132 easyUnlockTurnOffButton: '',
133 }); 133 });
134 134
135 // Before clearing the body, save a copy of the real prefs so we can 135 // Before clearing the body, save a copy of the real prefs so we can
136 // cleanly re-create the People page element. 136 // cleanly re-create the People page element.
137 prefs = document.querySelector('cr-settings').$$('settings-prefs').prefs; 137 prefs = document.querySelector('settings-ui').$$('settings-prefs').prefs;
138 }); 138 });
139 139
140 setup(function() { 140 setup(function() {
141 browserProxy = new TestEasyUnlockBrowserProxy(); 141 browserProxy = new TestEasyUnlockBrowserProxy();
142 settings.EasyUnlockBrowserProxyImpl.instance_ = browserProxy; 142 settings.EasyUnlockBrowserProxyImpl.instance_ = browserProxy;
143 143
144 PolymerTest.clearBody(); 144 PolymerTest.clearBody();
145 page = document.createElement('settings-people-page'); 145 page = document.createElement('settings-people-page');
146 page.currentRoute = { 146 page.currentRoute = {
147 page: 'basic', 147 page: 'basic',
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 }).then(function() { 210 }).then(function() {
211 Polymer.dom.flush(); 211 Polymer.dom.flush();
212 expectFalse(turnOffDialog.$.dialog.open); 212 expectFalse(turnOffDialog.$.dialog.open);
213 }); 213 });
214 }); 214 });
215 }); 215 });
216 216
217 // Run all registered tests. 217 // Run all registered tests.
218 mocha.run(); 218 mocha.run();
219 }); 219 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698