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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java

Issue 2914503002: align shipping option name to left and shipping cost to right on bottom sheet (Closed)
Patch Set: more fixing Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java
index e25e1e4bc013252e90ff2a893a1d1641ee25fed2..fab95e18f941151974f5deab43c3691c10d39d14 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestCommon.java
@@ -404,7 +404,7 @@ final class PaymentRequestTestCommon implements PaymentRequestObserverForTest,
@Override
public String call() {
return mUI.getShippingAddressSectionForTest()
- .getSummaryLabelForTest()
+ .getLeftSummaryLabelForTest()
.getText()
.toString();
}
@@ -416,7 +416,19 @@ final class PaymentRequestTestCommon implements PaymentRequestObserverForTest,
@Override
public String call() {
return mUI.getShippingOptionSectionForTest()
- .getSummaryLabelForTest()
+ .getLeftSummaryLabelForTest()
+ .getText()
+ .toString();
+ }
+ });
+ }
+
+ protected String getShippingOptionCostSummaryOnBottomSheet() throws ExecutionException {
+ return ThreadUtils.runOnUiThreadBlocking(new Callable<String>() {
+ @Override
+ public String call() {
+ return mUI.getShippingOptionSectionForTest()
+ .getRightSummaryLabelForTest()
.getText()
.toString();
}

Powered by Google App Engine
This is Rietveld 408576698