| 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.support.test.filters.MediumTest; |
| 9 | 9 |
| 10 import org.chromium.base.test.util.Feature; | 10 import org.chromium.base.test.util.Feature; |
| 11 import org.chromium.chrome.R; | 11 import org.chromium.chrome.R; |
| 12 import org.chromium.chrome.browser.autofill.AutofillTestHelper; | 12 import org.chromium.chrome.browser.autofill.AutofillTestHelper; |
| 13 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; | 13 import org.chromium.chrome.browser.autofill.PersonalDataManager.AutofillProfile; |
| 14 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; | 14 import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard; |
| 15 | 15 |
| 16 import java.util.concurrent.ExecutionException; | 16 import java.util.concurrent.ExecutionException; |
| 17 import java.util.concurrent.TimeoutException; | 17 import java.util.concurrent.TimeoutException; |
| 18 | 18 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 clickInPaymentMethodAndWait(R.id.payments_first_radio_button, mReadyToEd
it); | 48 clickInPaymentMethodAndWait(R.id.payments_first_radio_button, mReadyToEd
it); |
| 49 setSpinnerSelectionsInCardEditorAndWait(new int[] {FIRST_BILLING_ADDRESS
}, | 49 setSpinnerSelectionsInCardEditorAndWait(new int[] {FIRST_BILLING_ADDRESS
}, |
| 50 mBillingAddressChangeProcessed); | 50 mBillingAddressChangeProcessed); |
| 51 clickInCardEditorAndWait(R.id.payments_edit_done_button, mReadyToPay); | 51 clickInCardEditorAndWait(R.id.payments_edit_done_button, mReadyToPay); |
| 52 clickAndWait(R.id.button_primary, mReadyForUnmaskInput); | 52 clickAndWait(R.id.button_primary, mReadyForUnmaskInput); |
| 53 clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_NEGATIVE, mReadyToPa
y); | 53 clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_NEGATIVE, mReadyToPa
y); |
| 54 clickAndWait(R.id.button_secondary, mDismissed); | 54 clickAndWait(R.id.button_secondary, mDismissed); |
| 55 expectResultContains(new String[] {"Request cancelled"}); | 55 expectResultContains(new String[] {"Request cancelled"}); |
| 56 } | 56 } |
| 57 } | 57 } |
| OLD | NEW |