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

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

Issue 2583593002: [Payments] Dedupe subsets in contact detail suggestions. (Closed)
Patch Set: Created 4 years 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.test.suitebuilder.annotation.MediumTest; 7 import android.test.suitebuilder.annotation.MediumTest;
8 8
9 import org.chromium.base.test.util.Feature; 9 import org.chromium.base.test.util.Feature;
10 import org.chromium.chrome.R; 10 import org.chromium.chrome.R;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 mCountsToSet = new int[] {15, 10, 5, 1}; 122 mCountsToSet = new int[] {15, 10, 5, 1};
123 mDatesToSet = new int[] {5000, 5000, 5000, 5000}; 123 mDatesToSet = new int[] {5000, 5000, 5000, 5000};
124 124
125 triggerUIAndWait(mReadyForInput); 125 triggerUIAndWait(mReadyForInput);
126 clickInContactInfoAndWait(R.id.payments_section, mReadyForInput); 126 clickInContactInfoAndWait(R.id.payments_section, mReadyForInput);
127 assertEquals(4, getNumberOfContactDetailSuggestions()); 127 assertEquals(4, getNumberOfContactDetailSuggestions());
128 assertEquals("Bart Simpson\nbart@simpson.com\nPhone number required", 128 assertEquals("Bart Simpson\nbart@simpson.com\nPhone number required",
129 getContactDetailsSuggestionLabel(0)); 129 getContactDetailsSuggestionLabel(0));
130 assertEquals( 130 assertEquals(
131 "Homer Simpson\n555 123-4567\nEmail required", getContactDetails SuggestionLabel(1)); 131 "Homer Simpson\n555 123-4567\nEmail required", getContactDetails SuggestionLabel(1));
132 assertEquals("555 123-4567\nmarge@simpson.com\nName required",
133 getContactDetailsSuggestionLabel(2));
132 assertEquals( 134 assertEquals(
133 "Marge Simpson\nMore information required", getContactDetailsSug gestionLabel(2)); 135 "Marge Simpson\nMore information required", getContactDetailsSug gestionLabel(3));
134 assertEquals("555 123-4567\nmarge@simpson.com\nName required",
135 getContactDetailsSuggestionLabel(3));
136 } 136 }
137 } 137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698