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

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

Issue 2733273002: MD Settings: add extension-control indicator for autofill and password. (Closed)
Patch Set: add tests for settings-toggle-button 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/passwords_and_forms_browsertest.js
diff --git a/chrome/test/data/webui/settings/passwords_and_forms_browsertest.js b/chrome/test/data/webui/settings/passwords_and_forms_browsertest.js
index 330d831bf9644e507c65b428601b1ab9f1375cd9..5d434a9a096293870a1b98c69aea7406d3d69914 100644
--- a/chrome/test/data/webui/settings/passwords_and_forms_browsertest.js
+++ b/chrome/test/data/webui/settings/passwords_and_forms_browsertest.js
@@ -275,6 +275,32 @@ TEST_F('PasswordsAndFormsBrowserTest', 'uiTests', function() {
destroyPrefs(prefs);
});
});
+
+ test('testAutofillExtensionIndicator', function() {
+ return createPrefs(true, true).then(function(prefs) {
+ var element = createPasswordsAndFormsElement(prefs);
+
+ assertFalse(!!element.$$('#autofillExtensionIndicator'));
+ element.set('prefs.autofill.enabled.extensionId', 'test-id');
+ Polymer.dom.flush();
+
+ assertTrue(!!element.$$('#autofillExtensionIndicator'));
+ destroyPrefs(prefs);
+ });
+ });
+
+ test('testPasswordsExtensionIndicator', function() {
+ return createPrefs(true, true).then(function(prefs) {
+ var element = createPasswordsAndFormsElement(prefs);
+
+ assertFalse(!!element.$$('#passwordsExtensionIndicator'));
+ element.set('prefs.credentials_enable_service.extensionId', 'test-id');
+ Polymer.dom.flush();
+
+ assertTrue(!!element.$$('#passwordsExtensionIndicator'));
+ destroyPrefs(prefs);
+ });
+ });
});
mocha.run();

Powered by Google App Engine
This is Rietveld 408576698