| Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
|
| index 8abccce075c89cf5ef3f0d5de704803433048d3d..f9e45d53a26888a44f7a28cb8ca0b6c2a01d2a55 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java
|
| @@ -406,6 +406,21 @@ abstract class PaymentRequestTestBase extends ChromeActivityTestCaseBase<ChromeT
|
| });
|
| }
|
|
|
| + /** Returns the spinner value at the specified position in the editor UI for credit cards. */
|
| + protected String getSpinnerTextAtPositionInCardEditor(
|
| + final int dropdownIndex, final int itemPosition) throws ExecutionException {
|
| + return ThreadUtils.runOnUiThreadBlocking(new Callable<String>() {
|
| + @Override
|
| + public String call() {
|
| + return mUI.getCardEditorView()
|
| + .getDropdownFieldsForTest()
|
| + .get(dropdownIndex)
|
| + .getItemAtPosition(itemPosition)
|
| + .toString();
|
| + }
|
| + });
|
| + }
|
| +
|
| /** Returns the number of items offered by the spinner in the editor UI for credit cards. */
|
| protected int getSpinnerItemCountInCardEditor(final int dropdownIndex)
|
| throws ExecutionException {
|
|
|