summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Sapperstein <asapperstein@google.com>2014-02-27 18:52:32 -0800
committerAndrew Sapperstein <asapperstein@google.com>2014-03-04 13:14:05 -0800
commit2ed8c0409cd7d8e64c58ada6f63a519517ddaf7d (patch)
tree01fdfe7d6338a5f2d5f21ff1491cb989e79da830 /tests
parent5a1f16ed20a9fb823163ad3401590974690926da (diff)
downloadandroid_packages_apps_UnifiedEmail-2ed8c0409cd7d8e64c58ada6f63a519517ddaf7d.tar.gz
android_packages_apps_UnifiedEmail-2ed8c0409cd7d8e64c58ada6f63a519517ddaf7d.tar.bz2
android_packages_apps_UnifiedEmail-2ed8c0409cd7d8e64c58ada6f63a519517ddaf7d.zip
Redesign of message headers. b/12933316.
Pixel perfect. Re-architected a bunch of the layouts. Revised some of the string building for the new formatting. Removed unneeded references to some Views. Fixed a visual nit in SecureConversationView with the snap header. Removed a bunch of unnecessary BidiFormatter uses. Deleted dead assets. Removed padding around attachment icon and thus revised the margin/padding for it for both conversation list and conversation view. Aligned star when collapsed to top of date. Change-Id: I4b1fae35206e1f4713687c44a1c226e1257b13e4
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/mail/browse/MessageHeaderViewTest.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/src/com/android/mail/browse/MessageHeaderViewTest.java b/tests/src/com/android/mail/browse/MessageHeaderViewTest.java
index 1cadb73cd..0ba04f5c4 100644
--- a/tests/src/com/android/mail/browse/MessageHeaderViewTest.java
+++ b/tests/src/com/android/mail/browse/MessageHeaderViewTest.java
@@ -27,43 +27,6 @@ import java.util.HashMap;
public class MessageHeaderViewTest extends AndroidTestCase {
@SmallTest
- public void testRecipientSummaryLongTo() {
- String[] to = makeRecipientArray("TO", 60);
- String[] cc = makeRecipientArray("CC", 60);
- String summary = MessageHeaderView.getRecipientSummaryText(getContext(), "", "", to, cc,
- null, new HashMap<String, Address>(), null).toString();
-
- assertTrue(summary.contains("TO00"));
- assertTrue(summary.contains("TO49"));
- assertFalse(summary.contains("TO50"));
- }
-
- @SmallTest
- public void testRecipientSummaryLongMultipleLists() {
- String[] to = makeRecipientArray("TO", 20);
- String[] cc = makeRecipientArray("CC", 10);
- String[] bcc = makeRecipientArray("BB", 60);
- String summary = MessageHeaderView.getRecipientSummaryText(getContext(), "", "", to, cc,
- bcc, new HashMap<String, Address>(), null).toString();
-
- assertTrue(summary.contains("TO00"));
- assertTrue(summary.contains("TO19"));
- assertTrue(summary.contains("CC00"));
- assertTrue(summary.contains("CC09"));
- assertTrue(summary.contains("BB00"));
- assertTrue(summary.contains("BB19"));
- assertFalse(summary.contains("BB20"));
- }
-
- private static String[] makeRecipientArray(String prefix, int len) {
- String[] arr = new String[len];
- for (int i=0; i < arr.length; i++) {
- arr[i] = String.format("\"%s%02d\" <foo@bar.com>", prefix, i);
- }
- return arr;
- }
-
- @SmallTest
public void testMakeSnippet() {
assertSnippetEquals("Hello, world!",
"Hello, world!");