From 3f76aa7755fbb2e77ca6a648bbfa1f75680788c9 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Sat, 20 Nov 2010 13:55:22 -0800 Subject: Test for using the right size of notification info text. Change-Id: Iac8764542ddcd3ef0375f6d6d03225e9f6c2fc1c --- .../statusbartest/NotificationBuilderTest.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tests') 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) { -- cgit v1.1