| 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();
|
|
|