| 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 81aef6a935482202a03dad042fe24b28a762648c..95d3fbce0b739b9d0dcd45bb10143a0cc3d9002f 100644
|
| --- a/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
|
| +++ b/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
|
| @@ -60,9 +60,9 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| var node = Polymer.dom(listElement).children[1];
|
| assert(node);
|
| var passwordInfo = passwordList[0];
|
| - assertEquals(passwordInfo.loginPair.originUrl,
|
| + assertEquals(passwordInfo.loginPair.urls.shownUrl,
|
| node.querySelector('#originUrl').textContent.trim());
|
| - assertEquals(passwordInfo.linkUrl,
|
| + assertEquals(passwordInfo.loginPair.urls.linkUrl,
|
| node.querySelector('#originUrl').href);
|
| assertEquals(passwordInfo.loginPair.username,
|
| node.querySelector('#username').textContent);
|
| @@ -75,7 +75,7 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| * Helper method that validates a that elements in the exception list match
|
| * the expected data.
|
| * @param {!Array<!Element>} nodes The nodes that will be checked.
|
| - * @param {!Array<!chrome.passwordsPrivate.ExceptionPair>} exceptionList The
|
| + * @param {!Array<!chrome.passwordsPrivate.ExceptionEntry>} exceptionList The
|
| * expected data.
|
| * @private
|
| */
|
| @@ -116,7 +116,7 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| * Helper method used to create a password section for the given lists.
|
| * @param {!PasswordManager} passwordManager
|
| * @param {!Array<!chrome.passwordsPrivate.PasswordUiEntry>} passwordList
|
| - * @param {!Array<!chrome.passwordsPrivate.ExceptionPair>} exceptionList
|
| + * @param {!Array<!chrome.passwordsPrivate.ExceptionEntry>} exceptionList
|
| * @return {!Object}
|
| * @private
|
| */
|
| @@ -154,7 +154,7 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| */
|
| function listContainsUrl(passwordList, url) {
|
| for (var i = 0; i < passwordList.length; ++i) {
|
| - if (passwordList[i].loginPair.originUrl == url)
|
| + if (passwordList[i].loginPair.urls.originUrl == url)
|
| return true;
|
| }
|
| return false;
|
| @@ -162,12 +162,12 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
|
|
| /**
|
| * Helper method used to test for a url in a list of passwords.
|
| - * @param {!Array<!chrome.passwordsPrivate.ExceptionPair>} exceptionList
|
| + * @param {!Array<!chrome.passwordsPrivate.ExceptionEntry>} exceptionList
|
| * @param {string} url The URL that is being searched for.
|
| */
|
| function exceptionsListContainsUrl(exceptionList, url) {
|
| for (var i = 0; i < exceptionList.length; ++i) {
|
| - if (exceptionList[i].exceptionUrl == url)
|
| + if (exceptionList[i].urls.orginUrl == url)
|
| return true;
|
| }
|
| return false;
|
| @@ -274,7 +274,7 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
|
|
| passwordManager.onRemoveSavedPassword = function(detail) {
|
| // Verify that the event matches the expected value.
|
| - assertEquals(firstPassword.loginPair.originUrl, detail.originUrl);
|
| + assertEquals(firstPassword.loginPair.urls.originUrl, detail.originUrl);
|
| assertEquals(firstPassword.loginPair.username, detail.username);
|
|
|
| // Clean up after self.
|
| @@ -468,7 +468,7 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
|
| var passwordDialog = createPasswordDialog(item);
|
|
|
| passwordDialog.addEventListener('show-password', function(event) {
|
| - assertEquals(item.loginPair.originUrl, event.detail.originUrl);
|
| + assertEquals(item.loginPair.url.originUrl, event.detail.originUrl);
|
| assertEquals(item.loginPair.username, event.detail.username);
|
| done();
|
| });
|
|
|