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

Unified Diff: chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc

Issue 2896263002: [Payments] Changes to validation in the Credit Card editor (Closed)
Patch Set: rebase 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
Index: chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc
diff --git a/chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc b/chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc
index 2e081e933b7ea42a1c4b9b3f6e597e6dc44ac4d8..53fb746688261b2ab17fc9c32ab038d5ac510326 100644
--- a/chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc
+++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller_browsertest.cc
@@ -392,6 +392,11 @@ IN_PROC_BROWSER_TEST_F(PaymentRequestCreditCardEditorTest, EditingExpiredCard) {
EXPECT_EQ(base::ASCIIToUTF16("2017"),
GetComboboxValue(autofill::CREDIT_CARD_EXP_4_DIGIT_YEAR));
+ views::Combobox* combobox = static_cast<views::Combobox*>(
+ dialog_view()->GetViewByID(EditorViewController::GetInputFieldViewId(
+ autofill::CREDIT_CARD_EXP_MONTH)));
+ EXPECT_TRUE(combobox->HasFocus());
+
// Fixing the expiration date.
SetComboboxValue(base::ASCIIToUTF16("11"), autofill::CREDIT_CARD_EXP_MONTH);

Powered by Google App Engine
This is Rietveld 408576698