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 4af3b281b2d2e29f41b9d23298e93ba72ece6e58..856ab603f52a318498c92f5018493dffadca7482 100644 |
--- a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js |
+++ b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js |
@@ -126,9 +126,13 @@ SettingsAutofillSectionBrowserTest.prototype = { |
* @private |
*/ |
createAutofillSection_: function(addresses, creditCards) { |
+ // Override the AutofillManagerImpl for testing. |
+ this.autofillManager = new TestAutofillManager(); |
+ this.autofillManager.data.addresses = addresses; |
+ this.autofillManager.data.creditCards = creditCards; |
+ AutofillManagerImpl.instance_ = this.autofillManager; |
+ |
var section = document.createElement('settings-autofill-section'); |
- section.addresses = addresses; |
- section.creditCards = creditCards; |
document.body.appendChild(section); |
Polymer.dom.flush(); |
return section; |