Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7793)

Unified Diff: chrome/test/data/webui/settings/settings_passwords_section_browsertest.js

Issue 2818283002: MD-Settings: A11y - Fix password list focusability. (Closed)
Patch Set: nit Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e0b55aabc610dbb3f34342828275c9dfe77eca4c..6cd04039155eaff6a99e69ed189fcfafc0b6c949 100644
--- a/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
@@ -61,13 +61,13 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
assert(node);
var passwordInfo = passwordList[0];
assertEquals(passwordInfo.loginPair.urls.shown,
- node.querySelector('#originUrl').textContent.trim());
+ node.$$('#originUrl').textContent.trim());
assertEquals(passwordInfo.loginPair.urls.link,
- node.querySelector('#originUrl').href);
+ node.$$('#originUrl').href);
assertEquals(passwordInfo.loginPair.username,
- node.querySelector('#username').textContent);
+ node.$$('#username').textContent);
assertEquals(passwordInfo.numCharactersInPassword,
- node.querySelector('#password').value.length);
+ node.$$('#password').value.length);
}
}
@@ -283,7 +283,7 @@ TEST_F('SettingsPasswordSectionBrowserTest', 'uiTests', function() {
};
// Click the remove button on the first password.
- MockInteractions.tap(firstNode.querySelector('#passwordMenu'));
+ MockInteractions.tap(firstNode.$$('#passwordMenu'));
MockInteractions.tap(passwordsSection.$.menuRemovePassword);
});
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698