| Index: chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
|
| diff --git a/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js b/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
|
| index 5cc6d8fc46d69087c0aa883bd347c1c94e2ac90e..6ba6a8999ee7b2e80f8de6601b04c3d436e2c7e8 100644
|
| --- a/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
|
| +++ b/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
|
| @@ -112,10 +112,7 @@ SettingsPasswordSectionBrowserTest.prototype = {
|
| passwordsSection.savedPasswords = passwordList;
|
| passwordsSection.passwordExceptions = exceptionList;
|
| document.body.appendChild(passwordsSection);
|
| -
|
| - // Allow polymer binding to finish.
|
| - Polymer.dom.flush();
|
| -
|
| + this.flush_(passwordsSection);
|
| return passwordsSection;
|
| },
|
|
|
| @@ -131,6 +128,17 @@ SettingsPasswordSectionBrowserTest.prototype = {
|
| }
|
| return false;
|
| },
|
| +
|
| + /**
|
| + * Allow the iron-list to be sized properly.
|
| + * @param {!Object} passwordsSection
|
| + * @private
|
| + */
|
| + flush_: function(passwordsSection) {
|
| + passwordsSection.$.passwordList.notifyResize();
|
| + passwordsSection.$.passwordExceptionsList.notifyResize();
|
| + Polymer.dom.flush();
|
| + },
|
| };
|
|
|
| /**
|
| @@ -178,7 +186,7 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| passwordList);
|
| // Simulate 'longwebsite.com' being removed from the list.
|
| passwordsSection.splice('savedPasswords', 1, 1);
|
| - Polymer.dom.flush();
|
| + self.flush_(passwordsSection);
|
|
|
| assertFalse(self.listContainsUrl(passwordsSection.savedPasswords,
|
| 'longwebsite.com'));
|
| @@ -280,7 +288,7 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| passwordsSection.splice('passwordExceptions', 1, 1);
|
| assertEquals(-1, passwordsSection.passwordExceptions.indexOf('mail.com'));
|
| assertEquals(-1, exceptionList.indexOf('mail.com'));
|
| - Polymer.dom.flush();
|
| + self.flush_(passwordsSection);
|
|
|
| self.validateExceptionList_(
|
| self.getIronListChildren_(passwordsSection.$.passwordExceptionsList),
|
|
|