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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestPaymentAppCanMakePaymentQueryTest.java

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Rebase again :( Created 4 years 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698