| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** @fileoverview Runs the Polymer Passwords and Forms tests. */ | 5 /** @fileoverview Runs the Polymer Passwords and Forms tests. */ |
| 6 | 6 |
| 7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */ | 7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */ |
| 8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
| 9 | 9 |
| 10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 return new Promise(function(resolve) { | 265 return new Promise(function(resolve) { |
| 266 CrSettingsPrefs.deferInitialization = true; | 266 CrSettingsPrefs.deferInitialization = true; |
| 267 var prefs = document.createElement('settings-prefs'); | 267 var prefs = document.createElement('settings-prefs'); |
| 268 prefs.initialize(new settings.FakeSettingsPrivate([ | 268 prefs.initialize(new settings.FakeSettingsPrivate([ |
| 269 { | 269 { |
| 270 key: 'autofill.enabled', | 270 key: 'autofill.enabled', |
| 271 type: chrome.settingsPrivate.PrefType.BOOLEAN, | 271 type: chrome.settingsPrivate.PrefType.BOOLEAN, |
| 272 value: autofill, | 272 value: autofill, |
| 273 }, | 273 }, |
| 274 { | 274 { |
| 275 key: 'profile.password_manager_enabled', | 275 key: 'credentials_enable_service', |
| 276 type: chrome.settingsPrivate.PrefType.BOOLEAN, | 276 type: chrome.settingsPrivate.PrefType.BOOLEAN, |
| 277 value: passwords, | 277 value: passwords, |
| 278 }, | 278 }, |
| 279 ])); | 279 ])); |
| 280 | 280 |
| 281 CrSettingsPrefs.initialized.then(function() { | 281 CrSettingsPrefs.initialized.then(function() { |
| 282 resolve(prefs); | 282 resolve(prefs); |
| 283 }); | 283 }); |
| 284 }); | 284 }); |
| 285 }, | 285 }, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 assertTrue(element.$.autofillManagerButton.hasAttribute('actionable')); | 435 assertTrue(element.$.autofillManagerButton.hasAttribute('actionable')); |
| 436 assertTrue(element.$.passwordManagerButton.hasAttribute('actionable')); | 436 assertTrue(element.$.passwordManagerButton.hasAttribute('actionable')); |
| 437 | 437 |
| 438 self.destroyPrefs(prefs); | 438 self.destroyPrefs(prefs); |
| 439 }); | 439 }); |
| 440 }); | 440 }); |
| 441 }); | 441 }); |
| 442 | 442 |
| 443 mocha.run(); | 443 mocha.run(); |
| 444 }); | 444 }); |
| OLD | NEW |