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

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

Issue 2569313002: [MD-Settings] Add Ellipsis for the Address List Pieces. (Closed)
Patch Set: nit Created 4 years 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/test/data/webui/settings/passwords_and_autofill_fake_data.js ('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_autofill_section_browsertest.js
diff --git a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
index c156739db3e546000387a055a55f6e5da34f1a96..ce09a25f63ca945253929ec485518ce634ee36ad 100644
--- a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
@@ -419,8 +419,15 @@ TEST_F('SettingsAutofillSectionBrowserTest', 'AddressTests', function() {
var addressSummary = address.metadata.summaryLabel +
address.metadata.summarySublabel;
- assertEquals(addressSummary,
- row.querySelector('#addressSummary').textContent);
+ var actualSummary = '';
+
+ // Eliminate white space between nodes!
+ var addressPieces = row.querySelector('#addressSummary').children;
+ for (var i = 0; i < addressPieces.length; ++i) {
+ actualSummary += addressPieces[i].textContent.trim();
+ }
+
+ assertEquals(addressSummary, actualSummary);
});
test('verifyAddAddressDialog', function() {
« no previous file with comments | « chrome/test/data/webui/settings/passwords_and_autofill_fake_data.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698