| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 return new Promise(function(resolve) { | 269 return new Promise(function(resolve) { |
| 270 CrSettingsPrefs.deferInitialization = true; | 270 CrSettingsPrefs.deferInitialization = true; |
| 271 var prefs = document.createElement('settings-prefs'); | 271 var prefs = document.createElement('settings-prefs'); |
| 272 prefs.initialize(new settings.FakeSettingsPrivate([ | 272 prefs.initialize(new settings.FakeSettingsPrivate([ |
| 273 { | 273 { |
| 274 key: 'autofill.enabled', | 274 key: 'autofill.enabled', |
| 275 type: chrome.settingsPrivate.PrefType.BOOLEAN, | 275 type: chrome.settingsPrivate.PrefType.BOOLEAN, |
| 276 value: autofill, | 276 value: autofill, |
| 277 }, | 277 }, |
| 278 { | 278 { |
| 279 key: 'profile.password_manager_enabled', | 279 key: 'credentials_enable_service', |
| 280 type: chrome.settingsPrivate.PrefType.BOOLEAN, | 280 type: chrome.settingsPrivate.PrefType.BOOLEAN, |
| 281 value: passwords, | 281 value: passwords, |
| 282 }, | 282 }, |
| 283 ])); | 283 ])); |
| 284 | 284 |
| 285 CrSettingsPrefs.initialized.then(function() { | 285 CrSettingsPrefs.initialized.then(function() { |
| 286 resolve(prefs); | 286 resolve(prefs); |
| 287 }); | 287 }); |
| 288 }); | 288 }); |
| 289 }, | 289 }, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 assertTrue(element.$.autofillManagerButton.hasAttribute('actionable')); | 439 assertTrue(element.$.autofillManagerButton.hasAttribute('actionable')); |
| 440 assertTrue(element.$.passwordManagerButton.hasAttribute('actionable')); | 440 assertTrue(element.$.passwordManagerButton.hasAttribute('actionable')); |
| 441 | 441 |
| 442 self.destroyPrefs(prefs); | 442 self.destroyPrefs(prefs); |
| 443 }); | 443 }); |
| 444 }); | 444 }); |
| 445 }); | 445 }); |
| 446 | 446 |
| 447 mocha.run(); | 447 mocha.run(); |
| 448 }); | 448 }); |
| OLD | NEW |