diff options
author | Erik <roboerik@android.com> | 2010-10-01 12:55:26 -0700 |
---|---|---|
committer | Erik <roboerik@android.com> | 2010-10-01 13:34:26 -0700 |
commit | 21a183875fbbfa54f5a2a87779888a5fb7d1af44 (patch) | |
tree | e57660338350ce360c0b9994933fab2d38500cb8 /tests | |
parent | 42ea9e8b6a6c575c6414975034578761bf5e2636 (diff) | |
download | android_packages_apps_Calendar-21a183875fbbfa54f5a2a87779888a5fb7d1af44.tar.gz android_packages_apps_Calendar-21a183875fbbfa54f5a2a87779888a5fb7d1af44.tar.bz2 android_packages_apps_Calendar-21a183875fbbfa54f5a2a87779888a5fb7d1af44.zip |
Adds home tz support to cal widget
This change also requires change Ia7b3ad66 to the provider to send
a broadcast when the time zone changes.
Change-Id: I0bf98dc5adc849328a3b5bf0d8ac17329239c9f6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/android/calendar/widget/CalendarAppWidgetServiceTest.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/src/com/android/calendar/widget/CalendarAppWidgetServiceTest.java b/tests/src/com/android/calendar/widget/CalendarAppWidgetServiceTest.java index e870e593..b851680e 100644 --- a/tests/src/com/android/calendar/widget/CalendarAppWidgetServiceTest.java +++ b/tests/src/com/android/calendar/widget/CalendarAppWidgetServiceTest.java @@ -17,20 +17,19 @@ package com.android.calendar.widget; -import com.android.calendar.widget.CalendarAppWidgetModel; import com.android.calendar.widget.CalendarAppWidgetModel.EventInfo; -import com.android.calendar.widget.CalendarAppWidgetService; import com.android.calendar.widget.CalendarAppWidgetService.CalendarFactory; -import java.util.TimeZone; - import android.database.MatrixCursor; import android.test.AndroidTestCase; import android.test.suitebuilder.annotation.SmallTest; import android.test.suitebuilder.annotation.Suppress; import android.text.format.DateUtils; +import android.text.format.Time; import android.view.View; +import java.util.TimeZone; + // adb shell am instrument -w -e class com.android.providers.calendar.CalendarAppWidgetServiceTest // com.android.providers.calendar.tests/android.test.InstrumentationTestRunner @@ -109,7 +108,7 @@ public class CalendarAppWidgetServiceTest extends AndroidTestCase { // Test CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( - getContext(), cursor); + getContext(), cursor, Time.getCurrentTimezone()); assertEquals(expected.toString(), actual.toString()); } @@ -157,7 +156,7 @@ public class CalendarAppWidgetServiceTest extends AndroidTestCase { // Test CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( - getContext(), cursor); + getContext(), cursor, Time.getCurrentTimezone()); assertEquals(expected.toString(), actual.toString()); } @@ -200,7 +199,7 @@ public class CalendarAppWidgetServiceTest extends AndroidTestCase { // Test CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( - getContext(), cursor); + getContext(), cursor, Time.getCurrentTimezone()); assertEquals(expected.toString(), actual.toString()); } @@ -243,7 +242,7 @@ public class CalendarAppWidgetServiceTest extends AndroidTestCase { // Test CalendarAppWidgetModel actual = CalendarFactory.buildAppWidgetModel( - getContext(), cursor); + getContext(), cursor, Time.getCurrentTimezone()); assertEquals(expected.toString(), actual.toString()); } @@ -286,7 +285,7 @@ public class CalendarAppWidgetServiceTest extends AndroidTestCase { // Test CalendarAppWidgetModel actual = CalendarAppWidgetService.CalendarFactory.buildAppWidgetModel( - getContext(), cursor); + getContext(), cursor, Time.getCurrentTimezone()); assertEquals(expected.toString(), actual.toString()); } |