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

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

Issue 2072963002: Remove PaymentResponse.totalAmount according to latest spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final touch-up Created 4 years, 6 months 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.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 25 matching lines...) Expand all
36 @MediumTest 36 @MediumTest
37 public void testPay() throws InterruptedException, ExecutionException, Timeo utException { 37 public void testPay() throws InterruptedException, ExecutionException, Timeo utException {
38 triggerUIAndWait(mReadyToPay); 38 triggerUIAndWait(mReadyToPay);
39 clickAndWait(R.id.button_primary, mReadyForUnmaskInput); 39 clickAndWait(R.id.button_primary, mReadyForUnmaskInput);
40 typeInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123", 40 typeInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123",
41 mReadyForUnmaskInput.getTarget(), mReadyToUnmask); 41 mReadyForUnmaskInput.getTarget(), mReadyToUnmask);
42 clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE, 42 clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE,
43 mReadyToUnmask.getTarget(), mDismissed); 43 mReadyToUnmask.getTarget(), mDismissed);
44 expectResultContains(new String[] {"Jon Doe", "4111111111111111", "12", "2050", "visa", 44 expectResultContains(new String[] {"Jon Doe", "4111111111111111", "12", "2050", "visa",
45 "123", "Google", "340 Main St", "CA", "Los Angeles", "90291", "U S", "en", 45 "123", "Google", "340 Main St", "CA", "Los Angeles", "90291", "U S", "en",
46 "freeShippingOption", "USD", "5.00"}); 46 "freeShippingOption"});
47 } 47 }
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698