| 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
|
| deleted file mode 100644
|
| index 273143bcb11b004a7fbc57f26ca1d17a7b175471..0000000000000000000000000000000000000000
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppActivePaymentQueryTest.java
|
| +++ /dev/null
|
| @@ -1,86 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -package org.chromium.chrome.browser.payments;
|
| -
|
| -import android.test.suitebuilder.annotation.MediumTest;
|
| -
|
| -import org.chromium.base.test.util.CommandLineFlags;
|
| -import org.chromium.base.test.util.Feature;
|
| -
|
| -import java.util.concurrent.ExecutionException;
|
| -import java.util.concurrent.TimeoutException;
|
| -
|
| -/**
|
| - * A payment integration test for checking whether user can make active payment using a payment app.
|
| - */
|
| -@CommandLineFlags.Add("enable-blink-features=CanMakeActivePayment")
|
| -public class PaymentRequestPaymentAppActivePaymentQueryTest extends PaymentRequestTestBase {
|
| - public PaymentRequestPaymentAppActivePaymentQueryTest() {
|
| - super("payment_request_active_payment_query_bobpay_test.html");
|
| - }
|
| -
|
| - @Override
|
| - public void onMainActivityStarted() throws InterruptedException, ExecutionException,
|
| - TimeoutException {}
|
| -
|
| - @MediumTest
|
| - @Feature({"Payments"})
|
| - public void testNoBobPayInstalled() throws InterruptedException, ExecutionException,
|
| - TimeoutException {
|
| - openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false, false"});
|
| -
|
| - clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false, QuotaExceededError"});
|
| - }
|
| -
|
| - @MediumTest
|
| - @Feature({"Payments"})
|
| - public void testNoInstrumentsInFastBobPay() throws InterruptedException, ExecutionException,
|
| - TimeoutException {
|
| - installPaymentApp(NO_INSTRUMENTS, IMMEDIATE_RESPONSE);
|
| - openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false, false"});
|
| -
|
| - clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false, QuotaExceededError"});
|
| - }
|
| -
|
| - @MediumTest
|
| - @Feature({"Payments"})
|
| - public void testNoInstrumentsInSlowBobPay() throws InterruptedException, ExecutionException,
|
| - TimeoutException {
|
| - installPaymentApp(NO_INSTRUMENTS, DELAYED_RESPONSE);
|
| - openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false, false"});
|
| -
|
| - clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"false, QuotaExceededError"});
|
| - }
|
| -
|
| - @MediumTest
|
| - @Feature({"Payments"})
|
| - public void testPayViaFastBobPay() throws InterruptedException, ExecutionException,
|
| - TimeoutException {
|
| - installPaymentApp(HAVE_INSTRUMENTS, IMMEDIATE_RESPONSE);
|
| - openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"true, true"});
|
| -
|
| - clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"true, QuotaExceededError"});
|
| - }
|
| -
|
| - @MediumTest
|
| - @Feature({"Payments"})
|
| - public void testPayViaSlowBobPay() throws InterruptedException, ExecutionException,
|
| - TimeoutException {
|
| - installPaymentApp(HAVE_INSTRUMENTS, DELAYED_RESPONSE);
|
| - openPageAndClickBuyAndWait(mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"true, true"});
|
| -
|
| - clickNodeAndWait("otherBuy", mActivePaymentQueryResponded);
|
| - expectResultContains(new String[]{"true, QuotaExceededError"});
|
| - }
|
| -}
|
|
|