summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoe Onorato <joeo@google.com>2010-11-20 13:55:22 -0800
committerJoe Onorato <joeo@google.com>2010-11-21 16:16:28 -0800
commit3f76aa7755fbb2e77ca6a648bbfa1f75680788c9 (patch)
tree6a1111f3f09a71ad55ffdda586e3ed8059a4f560 /tests
parent3fe7f2f2e35692fe563ae00f62995030f1987c4f (diff)
downloadframeworks_base-3f76aa7755fbb2e77ca6a648bbfa1f75680788c9.zip
frameworks_base-3f76aa7755fbb2e77ca6a648bbfa1f75680788c9.tar.gz
frameworks_base-3f76aa7755fbb2e77ca6a648bbfa1f75680788c9.tar.bz2
Test for using the right size of notification info text.
Change-Id: Iac8764542ddcd3ef0375f6d6d03225e9f6c2fc1c
Diffstat (limited to 'tests')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java
index e17ed11..fddb4d5 100644
--- a/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java
+++ b/tests/StatusBar/src/com/android/statusbartest/NotificationBuilderTest.java
@@ -76,6 +76,24 @@ public class NotificationBuilderTest extends TestActivity
}
},
+ new Test("Basic Content w/ Info (1)") {
+ public void run() {
+ int id = 1;
+
+ Notification.Builder b = new Notification.Builder(NotificationBuilderTest.this);
+
+ b.setWhen(System.currentTimeMillis());
+ b.setSmallIcon(R.drawable.ic_statusbar_chat);
+ b.setContentTitle("Title");
+ b.setContentText("text\nline2");
+ b.setContentIntent(makeContentIntent(id));
+ b.setDeleteIntent(makeDeleteIntent(id));
+ b.setContentInfo("Snoozed");
+
+ mNM.notify(id, b.getNotification());
+ }
+ },
+
new Test("Basic Content w/ Number (1)") {
public void run() {
int id = 1;
@@ -93,7 +111,6 @@ public class NotificationBuilderTest extends TestActivity
mNM.notify(id, b.getNotification());
}
},
-
};
private PendingIntent makeContentIntent(int id) {