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.content.DialogInterface; | 7 import android.content.DialogInterface; |
8 import android.test.suitebuilder.annotation.MediumTest; | 8 import android.test.suitebuilder.annotation.MediumTest; |
9 | 9 |
10 import org.chromium.chrome.R; | 10 import org.chromium.chrome.R; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 @MediumTest | 69 @MediumTest |
70 public void testPay() throws InterruptedException, ExecutionException, Timeo
utException { | 70 public void testPay() throws InterruptedException, ExecutionException, Timeo
utException { |
71 triggerUIAndWait(mReadyToPay); | 71 triggerUIAndWait(mReadyToPay); |
72 clickAndWait(R.id.button_primary, mReadyForUnmaskInput); | 72 clickAndWait(R.id.button_primary, mReadyForUnmaskInput); |
73 typeInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123", | 73 typeInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123", |
74 mReadyForUnmaskInput.getTarget(), mReadyToUnmask); | 74 mReadyForUnmaskInput.getTarget(), mReadyToUnmask); |
75 clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE, | 75 clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE, |
76 mReadyToUnmask.getTarget(), mDismissed); | 76 mReadyToUnmask.getTarget(), mDismissed); |
77 expectResultContains(new String[] {"Jon Doe", "4111111111111111", "12",
"2050", "visa", | 77 expectResultContains(new String[] {"Jon Doe", "4111111111111111", "12",
"2050", "visa", |
78 "123", "USD", "5.00"}); | 78 "123"}); |
79 } | 79 } |
80 } | 80 } |
OLD | NEW |