| 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 5f199ec99691983cbec0a14182601687f7bc8547..2a9dd00c8546bc1cab14066e93a256277eb3d926 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
|
| @@ -563,6 +563,22 @@ abstract class PaymentRequestTestBase extends ChromeActivityTestCaseBase<ChromeT
|
| helper.waitForCallback(callCount);
|
| }
|
|
|
| + /** Selects the spinner value in the editor for Payment Request form and wait. */
|
| + protected void setSpinnerSelectionsInEditorAndWait(final int[] selections,
|
| + CallbackHelper helper) throws InterruptedException, TimeoutException {
|
| + int callCount = helper.getCallCount();
|
| + ThreadUtils.runOnUiThreadBlocking(new Runnable() {
|
| + @Override
|
| + public void run() {
|
| + List<Spinner> fields = mUI.getEditorView().getDropdownFieldsForTest();
|
| + for (int i = 0; i < selections.length && i < fields.size(); i++) {
|
| + fields.get(i).setSelection(selections[i]);
|
| + }
|
| + }
|
| + });
|
| + helper.waitForCallback(callCount);
|
| + }
|
| +
|
| /** Directly sets the text in the editor UI for credit cards. */
|
| protected void setTextInCardEditorAndWait(final String[] values, CallbackHelper helper)
|
| throws InterruptedException, TimeoutException {
|
|
|