| Index: components/payments/content/payment_request_spec_unittest.cc
|
| diff --git a/components/payments/content/payment_request_spec_unittest.cc b/components/payments/content/payment_request_spec_unittest.cc
|
| index 9a3b9b0f61e573605de06041aba80965375f34eb..7414a613f25206b7cea3212e89b9705353aabdb0 100644
|
| --- a/components/payments/content/payment_request_spec_unittest.cc
|
| +++ b/components/payments/content/payment_request_spec_unittest.cc
|
| @@ -68,12 +68,12 @@ TEST_F(PaymentRequestSpecTest, IsMethodSupportedThroughBasicCard) {
|
|
|
| RecreateSpecWithMethodData(std::move(method_data));
|
|
|
| - // Only unionpay and jcb are supported through basic-card.
|
| + // unionpay and jcb are supported through basic-card. visa is supported
|
| + // through basic card because it was specified in basic-card in addition to
|
| + // supportedMethods.
|
| EXPECT_TRUE(spec()->IsMethodSupportedThroughBasicCard("unionpay"));
|
| EXPECT_TRUE(spec()->IsMethodSupportedThroughBasicCard("jcb"));
|
| - // "visa" is NOT supported through basic card because it was specified
|
| - // directly first in supportedMethods.
|
| - EXPECT_FALSE(spec()->IsMethodSupportedThroughBasicCard("visa"));
|
| + EXPECT_TRUE(spec()->IsMethodSupportedThroughBasicCard("visa"));
|
| EXPECT_FALSE(spec()->IsMethodSupportedThroughBasicCard("mastercard"));
|
| EXPECT_FALSE(spec()->IsMethodSupportedThroughBasicCard("diners"));
|
| EXPECT_FALSE(spec()->IsMethodSupportedThroughBasicCard("garbage"));
|
|
|