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

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

Issue 2762433002: MD Settings: move autofill and manage password toggles to their subpages. (Closed)
Patch Set: use this.i18n instead 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
Index: chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
diff --git a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
index 30e8e862acf8b882ec873e7bf65fc4ed039827d8..6eee16d4e2279d6b136c1ce5ed088afd2e94dcdb 100644
--- a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
@@ -170,6 +170,25 @@ SettingsAutofillSectionBrowserTest.prototype = {
},
};
+TEST_F('SettingsAutofillSectionBrowserTest', 'uiTest', function() {
+ suite('AutofillSection', function() {
+ test('testAutofillExtensionIndicator', function() {
+ // Initializing with fake prefs
+ var section = document.createElement('settings-autofill-section');
+ section.prefs = {autofill: {enabled: {}}};
+ document.body.appendChild(section);
+
+ assertFalse(!!section.$$('#autofillExtensionIndicator'));
+ section.set('prefs.autofill.enabled.extensionId', 'test-id');
+ Polymer.dom.flush();
+
+ assertTrue(!!section.$$('#autofillExtensionIndicator'));
+ });
+ });
+
+ mocha.run();
+});
+
TEST_F('SettingsAutofillSectionBrowserTest', 'CreditCardTests', function() {
var self = this;

Powered by Google App Engine
This is Rietveld 408576698