| 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 c6467b22fbc5e9f5721db8d886803ffce7f848a1..17a80c23671acbfd98c8e5129a4643cf22e06e25 100644
|
| --- a/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
|
| +++ b/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
|
| @@ -39,13 +39,13 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| assertEquals(self.browsePreload, document.location.href,
|
| 'Unexpected URL loaded');
|
|
|
| - var passwordList = [{origin: 'anotherwebsite.com',
|
| + var passwordList = [{shownUrl: 'anotherwebsite.com',
|
| username: 'luigi',
|
| password: '*******'},
|
| - {origin: 'longwebsite.com',
|
| + {shownUrl: 'longwebsite.com',
|
| username: 'peach',
|
| password: '***'},
|
| - {origin: 'website.com',
|
| + {shownUrl: 'website.com',
|
| username: 'mario',
|
| password: '*******'}];
|
|
|
| @@ -62,20 +62,20 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| 'Failed to pass list of passwords to iron-list');
|
|
|
| var list = Polymer.dom(passwordsSection.$.passwordList);
|
| - assertTrue(!!list, "Failed to get the password list");
|
| + assertTrue(!!list, 'Failed to get the password list');
|
| // Skip the first child because it's the template.
|
| var listChildren = list.children.slice(1);
|
|
|
| var validate = function(nodes, passwordList, index) {
|
| assertTrue(!!nodes[index], 'Failed to get nodes[' + index + ']');
|
| - assertEquals(passwordList[index].origin,
|
| - nodes[index].querySelector('#origin').textContent,
|
| - 'origin mismatch in nodes[' + index + ']');
|
| + assertEquals(passwordList[index].shownUrl,
|
| + nodes[index].querySelector('#shownUrl').textContent,
|
| + 'shownUrl mismatch in nodes[' + index + ']');
|
| assertEquals(passwordList[index].username,
|
| nodes[index].querySelector('#username').textContent,
|
| 'username mismatch in nodes[' + index + ']');
|
| assertEquals(passwordList[index].password,
|
| - nodes[index].querySelector('#password').textContent,
|
| + nodes[index].querySelector('#password').value,
|
| 'password mismatch in nodes[' + index + ']');
|
| };
|
|
|
|
|