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

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

Issue 2668163002: MD Settings: Fix styles in several places. (Closed)
Patch Set: remove ugly for-unit-test-only class Created 3 years, 11 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/site_settings/media_picker.html ('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 215f67e00fe0fd89f4b88c26266fa173d748be90..5efab4cb342de3f677290d981d1ce7ab855fb61e 100644
--- a/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_passwords_section_browsertest.js
@@ -92,10 +92,8 @@ SettingsPasswordSectionBrowserTest.prototype = {
* @private
*/
getDomRepeatChildren_: function(element) {
- var template = element.children[element.children.length - 1];
- assertEquals('TEMPLATE', template.tagName);
- // The template is at the end of the list of children and should be skipped.
- return Array.prototype.slice.call(element.children, 0, -1);
+ var nodes = element.querySelectorAll('.list-item:not([id])');
+ return nodes;
},
/**
« no previous file with comments | « chrome/browser/resources/settings/site_settings/media_picker.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698