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

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

Issue 2908483003: separate shipping address and option on bottom sheet (Closed)
Patch Set: more formatting Created 3 years, 7 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/PaymentRequestShippingAddressAndOptionTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShippingAddressAndOptionTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShippingAddressAndOptionTest.java
index 299b6fc3107599d1b75fe08423793ddfe7dff270..490fbd096143daec88bc8220e242426e435a6d1a 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShippingAddressAndOptionTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShippingAddressAndOptionTest.java
@@ -74,8 +74,11 @@ public class PaymentRequestShippingAddressAndOptionTest implements MainActivityS
// Make sure shipping option summary on bottom sheet is displayed in a single line
// as expected.
- Assert.assertEquals("Free global shipping, $0.00",
- mPaymentRequestTestRule.getShippingOptionSummaryLabel());
+ Assert.assertEquals(
+ "Free global shipping", mPaymentRequestTestRule.getShippingOptionSummaryLabel());
+
+ // Make sure shipping cost is display in the summary right text view.
+ Assert.assertEquals("$0.00", mPaymentRequestTestRule.getShippingOptionCostSummaryLabel());
}
/** Verifies that the shipping address format in fullsheet mode is as expected. */
@@ -157,8 +160,8 @@ public class PaymentRequestShippingAddressAndOptionTest implements MainActivityS
Assert.assertTrue(mPaymentRequestTestRule.getShippingAddressOptionRowAtIndex(0)
.getLabelText()
.toString()
- .equals("Seb Doe\nGoogle, 340 Main St, Los Angeles, CA 90291\n"
- + "+1 650-253-0000"));
+ .equals("Seb Doe\nGoogle, 340 Main St, Los Angeles, CA 90291"
+ + " \n+1 650-253-0000"));
}
/**

Powered by Google App Engine
This is Rietveld 408576698