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 b3ba1065034821444a687a32ef4345b10dd56e53..7545f0531964cd093ebdd7c2e794196f5a22b70e 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; |