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

Unified Diff: chrome/test/data/webui/settings/reset_page_test.js

Issue 2722083003: MD Settings: Change "view reported settings" string. (Closed)
Patch Set: Add test. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/reset_page_test.js
diff --git a/chrome/test/data/webui/settings/reset_page_test.js b/chrome/test/data/webui/settings/reset_page_test.js
index 15ed24b7aefa8a3db87d58e93c060156ac09e029..5316a9b6aeb7e6e2c512ad108190dfd09b825054 100644
--- a/chrome/test/data/webui/settings/reset_page_test.js
+++ b/chrome/test/data/webui/settings/reset_page_test.js
@@ -99,12 +99,17 @@ cr.define('settings_reset_page', function() {
var dialog = resetPage.$$('settings-reset-profile-dialog');
assertTrue(!!dialog);
+ var checkbox = dialog.$$('.footer paper-checkbox');
+ assertTrue(checkbox.checked);
var showReportedSettingsLink = dialog.$$('.footer a');
assertTrue(!!showReportedSettingsLink);
MockInteractions.tap(showReportedSettingsLink);
return resetPageBrowserProxy.whenCalled('showReportedSettings').then(
function() {
+ // Ensure that the checkbox was not toggled as a result of
+ // clicking the link.
+ assertTrue(checkbox.checked);
assertFalse(dialog.$.reset.disabled);
assertFalse(dialog.$.resetSpinner.active);
MockInteractions.tap(dialog.$.reset);
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698