Use PeopleActivity for running tests.
The ContactListItemViewTests need an activity to run in. I had initially
chosen DialtactsActivity, but that does not work on the tablet.
Since what is really matters is that this is an activity defining the
proper style, PeopleActivity works just fine.
Change-Id: I198a284d5a41904cccfea3a5e67ab49a37975e90
diff --git a/tests/src/com/android/contacts/list/ContactListItemViewTest.java b/tests/src/com/android/contacts/list/ContactListItemViewTest.java
index 07ea814..7764eb3 100644
--- a/tests/src/com/android/contacts/list/ContactListItemViewTest.java
+++ b/tests/src/com/android/contacts/list/ContactListItemViewTest.java
@@ -16,7 +16,7 @@
package com.android.contacts.list;
-import com.android.contacts.activities.DialtactsActivity;
+import com.android.contacts.activities.PeopleActivity;
import com.android.contacts.format.SpannedTestUtils;
import com.android.contacts.format.TestTextWithHighlightingFactory;
@@ -30,18 +30,18 @@
/**
* Unit tests for {@link ContactListItemView}.
*
- * It uses an {@link ActivityInstrumentationTestCase2} for {@link DialtactsActivity} because we need
+ * It uses an {@link ActivityInstrumentationTestCase2} for {@link PeopleActivity} because we need
* to have the style properly setup.
*/
@LargeTest
-public class ContactListItemViewTest extends ActivityInstrumentationTestCase2<DialtactsActivity> {
+public class ContactListItemViewTest extends ActivityInstrumentationTestCase2<PeopleActivity> {
/** The HTML code used to mark the start of the highlighted part. */
private static final String START = "<font color =\"#729a27\">";
/** The HTML code used to mark the end of the highlighted part. */
private static final String END = "</font>";
public ContactListItemViewTest() {
- super(DialtactsActivity.class);
+ super(PeopleActivity.class);
}
public void testShowDisplayName_Simple() {