| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |