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

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

Issue 1911943002: MD Settings: Tweak "View reported settings" UI in reset settings profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_reset_page', function() { 5 cr.define('settings_reset_page', function() {
6 /** @enum {string} */ 6 /** @enum {string} */
7 var TestNames = { 7 var TestNames = {
8 PowerwashDialogAction: 'PowerwashDialogAction', 8 PowerwashDialogAction: 'PowerwashDialogAction',
9 PowerwashDialogOpenClose: 'PowerwashDialogOpenClose', 9 PowerwashDialogOpenClose: 'PowerwashDialogOpenClose',
10 ResetBannerClose: 'ResetBannerClose', 10 ResetBannerClose: 'ResetBannerClose',
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 }); 185 });
186 186
187 // Tests that when user request to reset the profile the appropriate 187 // Tests that when user request to reset the profile the appropriate
188 // message is sent to the browser. 188 // message is sent to the browser.
189 test(TestNames.ResetProfileDialogAction, function() { 189 test(TestNames.ResetProfileDialogAction, function() {
190 // Open reset profile dialog. 190 // Open reset profile dialog.
191 MockInteractions.tap(resetPage.$.resetProfile); 191 MockInteractions.tap(resetPage.$.resetProfile);
192 var dialog = resetPage.$$('settings-reset-profile-dialog'); 192 var dialog = resetPage.$$('settings-reset-profile-dialog');
193 assertTrue(!!dialog); 193 assertTrue(!!dialog);
194 194
195 var showReportedSettingsButton = dialog.$$('iron-icon'); 195 var showReportedSettingsLink = dialog.$$('.footer a');
196 assertTrue(!!showReportedSettingsButton); 196 assertTrue(!!showReportedSettingsLink);
197 MockInteractions.tap(showReportedSettingsButton); 197 MockInteractions.tap(showReportedSettingsLink);
198 198
199 return browserProxy.whenCalled('getReportedSettings').then(function() { 199 return browserProxy.whenCalled('getReportedSettings').then(function() {
200 MockInteractions.tap(dialog.$.reset); 200 MockInteractions.tap(dialog.$.reset);
201 return browserProxy.whenCalled('performResetProfileSettings'); 201 return browserProxy.whenCalled('performResetProfileSettings');
202 }); 202 });
203 }); 203 });
204 204
205 if (cr.isChromeOS) { 205 if (cr.isChromeOS) {
206 /** 206 /**
207 * @param {function(SettingsPowerwashDialogElemeent):!Element} 207 * @param {function(SettingsPowerwashDialogElemeent):!Element}
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 }); 253 });
254 } 254 }
255 255
256 return { 256 return {
257 registerTests: function() { 257 registerTests: function() {
258 registerBannerTests(); 258 registerBannerTests();
259 registerDialogTests(); 259 registerDialogTests();
260 }, 260 },
261 }; 261 };
262 }); 262 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698