From e9d94e6a112b119d8ca895e0b7e8c82655eaa9a7 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 8 Apr 2013 11:14:28 -0700 Subject: Fix failing tests in PhoneCallDetailsHelpeTests Bug 8566339 Change-Id: I20f84454f09be6f954c98042395908ca63977f6f --- tests/src/com/android/dialer/PhoneCallDetailsHelperTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/src/com/android') 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("yesterday", + assertEquals("Yesterday", mViews.callTypeAndDate.getText().toString()); + assertEqualsHtml("Yesterday", 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. */ -- cgit v1.2.3