From 609cdf6bc5a3636161d269612a714f6c0777a0e8 Mon Sep 17 00:00:00 2001 From: cketti Date: Sat, 9 Jun 2012 00:39:15 +0200 Subject: [PATCH] Worked around API7/API10 differences in unit test GMT-dates are formatted without "+00:00" offset in API7 emulators. --- tests/src/com/fsck/k9/mail/internet/ViewablesTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/com/fsck/k9/mail/internet/ViewablesTest.java b/tests/src/com/fsck/k9/mail/internet/ViewablesTest.java index ed7a2c90e..e25ceca1d 100644 --- a/tests/src/com/fsck/k9/mail/internet/ViewablesTest.java +++ b/tests/src/com/fsck/k9/mail/internet/ViewablesTest.java @@ -111,7 +111,7 @@ public class ViewablesTest extends AndroidTestCase { public void testTextPlusRfc822Message() throws MessagingException { K9Activity.setLanguage(getContext(), "en"); Locale.setDefault(Locale.US); - TimeZone.setDefault(TimeZone.getTimeZone("GMT")); + TimeZone.setDefault(TimeZone.getTimeZone("GMT+01:00")); String bodyText = "Some text here"; String innerBodyText = "Hey there. I'm inside a message/rfc822 (inline) attachment."; @@ -152,7 +152,7 @@ public class ViewablesTest extends AndroidTestCase { "\n\n" + "From: from@example.com" + "\n" + "To: to@example.com" + "\n" + - "Sent: Sat Mar 17 00:00:00 GMT+00:00 2012" + "\n" + + "Sent: Sat Mar 17 00:00:00 GMT+01:00 2012" + "\n" + "Subject: Subject" + "\n" + "\n" + innerBodyText; @@ -173,7 +173,7 @@ public class ViewablesTest extends AndroidTestCase { "to@example.com" + "" + "Sent:" + - "Sat Mar 17 00:00:00 GMT+00:00 2012" + + "Sat Mar 17 00:00:00 GMT+01:00 2012" + "" + "Subject:" + "Subject" +