OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.payments; | 5 package org.chromium.chrome.browser.payments; |
6 | 6 |
7 import android.test.suitebuilder.annotation.MediumTest; | 7 import android.support.test.filters.MediumTest; |
8 | 8 |
9 import org.chromium.base.test.util.Feature; | 9 import org.chromium.base.test.util.Feature; |
10 | 10 |
11 import java.util.concurrent.ExecutionException; | 11 import java.util.concurrent.ExecutionException; |
12 import java.util.concurrent.TimeoutException; | 12 import java.util.concurrent.TimeoutException; |
13 | 13 |
14 /** | 14 /** |
15 * A payment integration test for checking whether user can make a payment using
a payment app. | 15 * A payment integration test for checking whether user can make a payment using
a payment app. |
16 */ | 16 */ |
17 public class PaymentRequestPaymentAppCanMakePaymentQueryTest extends PaymentRequ
estTestBase { | 17 public class PaymentRequestPaymentAppCanMakePaymentQueryTest extends PaymentRequ
estTestBase { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 public void testPayViaSlowBobPay() throws InterruptedException, ExecutionExc
eption, | 75 public void testPayViaSlowBobPay() throws InterruptedException, ExecutionExc
eption, |
76 TimeoutException { | 76 TimeoutException { |
77 installPaymentApp(HAVE_INSTRUMENTS, DELAYED_RESPONSE); | 77 installPaymentApp(HAVE_INSTRUMENTS, DELAYED_RESPONSE); |
78 openPageAndClickBuyAndWait(mCanMakePaymentQueryResponded); | 78 openPageAndClickBuyAndWait(mCanMakePaymentQueryResponded); |
79 expectResultContains(new String[]{"true, true"}); | 79 expectResultContains(new String[]{"true, true"}); |
80 | 80 |
81 clickNodeAndWait("otherBuy", mCanMakePaymentQueryResponded); | 81 clickNodeAndWait("otherBuy", mCanMakePaymentQueryResponded); |
82 expectResultContains(new String[]{"true, QuotaExceededError"}); | 82 expectResultContains(new String[]{"true, QuotaExceededError"}); |
83 } | 83 } |
84 } | 84 } |
OLD | NEW |