| Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java
|
| index 1a481b61ee6279a3476410e0ad343fad53ac3bd9..273143bcb11b004a7fbc57f26ca1d17a7b175471 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java
|
| @@ -30,7 +30,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
|
| public void testNoBobPayInstalled() throws InterruptedException, ExecutionException,
|
| TimeoutException {
|
| openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false"});
|
| + expectResultContains(new String[]{"false, false"});
|
| +
|
| + clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| + expectResultContains(new String[]{"false, QuotaExceededError"});
|
| }
|
|
|
| @MediumTest
|
| @@ -39,7 +42,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
|
| TimeoutException {
|
| installPaymentApp(NO_INSTRUMENTS, IMMEDIATE_RESPONSE);
|
| openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false"});
|
| + expectResultContains(new String[]{"false, false"});
|
| +
|
| + clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| + expectResultContains(new String[]{"false, QuotaExceededError"});
|
| }
|
|
|
| @MediumTest
|
| @@ -48,7 +54,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
|
| TimeoutException {
|
| installPaymentApp(NO_INSTRUMENTS, DELAYED_RESPONSE);
|
| openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false"});
|
| + expectResultContains(new String[]{"false, false"});
|
| +
|
| + clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| + expectResultContains(new String[]{"false, QuotaExceededError"});
|
| }
|
|
|
| @MediumTest
|
| @@ -57,7 +66,10 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
|
| TimeoutException {
|
| installPaymentApp(HAVE_INSTRUMENTS, IMMEDIATE_RESPONSE);
|
| openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"true"});
|
| + expectResultContains(new String[]{"true, true"});
|
| +
|
| + clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| + expectResultContains(new String[]{"true, QuotaExceededError"});
|
| }
|
|
|
| @MediumTest
|
| @@ -66,6 +78,9 @@ public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentReque
|
| TimeoutException {
|
| installPaymentApp(HAVE_INSTRUMENTS, DELAYED_RESPONSE);
|
| openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"true"});
|
| + expectResultContains(new String[]{"true, true"});
|
| +
|
| + clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| + expectResultContains(new String[]{"true, QuotaExceededError"});
|
| }
|
| }
|
|
|