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

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

Issue 2153243002: MD Settings: Replace paper-item with button under passwords_and_forms_page/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing test assertions to ignore spaces. Created 4 years, 5 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/passwords_and_forms_page/credit_card_edit_dialog.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 1bde01aeeb95ce56239254acfef6416e5d22b4cb..ef3ba57d1963bbbc5b312b39856414e52ae31d3f 100644
--- a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
@@ -256,8 +256,8 @@ TEST_F('SettingsAutofillSectionBrowserTest', 'CreditCardTests', function() {
var now = new Date();
var maxYear = now.getFullYear() + 9;
- assertEquals('2015', firstSelectableYear.textContent);
- assertEquals(maxYear.toString(), lastSelectableYear.textContent);
+ assertEquals('2015', firstSelectableYear.textContent.trim());
+ assertEquals(maxYear.toString(), lastSelectableYear.textContent.trim());
});
test('verifyVeryFutureCreditCardYear', function() {
@@ -274,8 +274,9 @@ TEST_F('SettingsAutofillSectionBrowserTest', 'CreditCardTests', function() {
var lastSelectableYear = selectableYears[selectableYears.length - 1];
assertEquals(now.getFullYear().toString(),
- firstSelectableYear.textContent);
- assertEquals(farFutureYear.toString(), lastSelectableYear.textContent);
+ firstSelectableYear.textContent.trim());
+ assertEquals(farFutureYear.toString(),
+ lastSelectableYear.textContent.trim());
});
test('verifyVeryNormalCreditCardYear', function() {
@@ -293,8 +294,8 @@ TEST_F('SettingsAutofillSectionBrowserTest', 'CreditCardTests', function() {
var lastSelectableYear = selectableYears[selectableYears.length - 1];
assertEquals(now.getFullYear().toString(),
- firstSelectableYear.textContent);
- assertEquals(maxYear.toString(), lastSelectableYear.textContent);
+ firstSelectableYear.textContent.trim());
+ assertEquals(maxYear.toString(), lastSelectableYear.textContent.trim());
});
// Test will timeout if event is not received.
« no previous file with comments | « chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698