summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-04-08 11:14:28 -0700
committerYorke Lee <yorkelee@google.com>2013-04-08 11:14:28 -0700
commite9d94e6a112b119d8ca895e0b7e8c82655eaa9a7 (patch)
tree685b37291f1612c463b4da0898907acfcabca0ef /tests
parentbccd23a1790f0fef1a85fa2a78799517c9024de5 (diff)
downloadandroid_packages_apps_Dialer-e9d94e6a112b119d8ca895e0b7e8c82655eaa9a7.tar.gz
android_packages_apps_Dialer-e9d94e6a112b119d8ca895e0b7e8c82655eaa9a7.tar.bz2
android_packages_apps_Dialer-e9d94e6a112b119d8ca895e0b7e8c82655eaa9a7.zip
Fix failing tests in PhoneCallDetailsHelpeTests
Bug 8566339 Change-Id: I20f84454f09be6f954c98042395908ca63977f6f
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java b/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java
index 961764475..80bbf34db 100644
--- a/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java
+++ b/tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java
@@ -110,8 +110,8 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase {
public void testSetPhoneCallDetails_Normal() {
setPhoneCallDetailsWithNumber("14125551212", "1-412-555-1212");
- assertEquals("yesterday", mViews.callTypeAndDate.getText().toString());
- assertEqualsHtml("<font color='#33b5e5'><b>yesterday</b></font>",
+ assertEquals("Yesterday", mViews.callTypeAndDate.getText().toString());
+ assertEqualsHtml("<font color='#33b5e5'><b>Yesterday</b></font>",
mViews.callTypeAndDate.getText());
}
@@ -139,7 +139,7 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase {
setPhoneCallDetailsWithDate(
new GregorianCalendar(2011, 5, 2, 13, 0, 0).getTimeInMillis());
- assertDateEquals("yesterday");
+ assertDateEquals("Yesterday");
setPhoneCallDetailsWithDate(
new GregorianCalendar(2011, 5, 1, 13, 0, 0).getTimeInMillis());
@@ -266,7 +266,7 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase {
assertEquals(id, mViews.callTypeIcons.getCallType(index));
}
assertEquals(View.VISIBLE, mViews.callTypeIcons.getVisibility());
- assertEquals("yesterday", mViews.callTypeAndDate.getText().toString());
+ assertEquals("Yesterday", mViews.callTypeAndDate.getText().toString());
}
/**
@@ -280,7 +280,7 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase {
assertEquals(id, mViews.callTypeIcons.getCallType(index));
}
assertEquals(View.VISIBLE, mViews.callTypeIcons.getVisibility());
- assertEquals(overflowText + " yesterday", mViews.callTypeAndDate.getText().toString());
+ assertEquals(overflowText + " Yesterday", mViews.callTypeAndDate.getText().toString());
}
/** Sets the phone call details with default values and the given number. */