commit | fdf72f6d7685c2769a5fbdca8ab7bb60cfb5cff5 | [log] [tgz] |
---|---|---|
author | Flavio Lerda <flerda@google.com> | Thu Aug 25 13:06:15 2011 +0100 |
committer | Flavio Lerda <flerda@google.com> | Thu Aug 25 13:06:15 2011 +0100 |
tree | 7b8e74e5663aa7cc96631cbd4b435ec1088ebcef | |
parent | c06f21bd72611b335f4d34586f656225fb02f0fb [diff] |
Update tests. Header and title are not added to an empty StreamItemAdapter. Change-Id: I45d7a2a13a1df06d719c6de0502e3678b1901db2
diff --git a/tests/src/com/android/contacts/detail/StreamItemAdapterTest.java b/tests/src/com/android/contacts/detail/StreamItemAdapterTest.java index 1fee9b6..09af97a 100644 --- a/tests/src/com/android/contacts/detail/StreamItemAdapterTest.java +++ b/tests/src/com/android/contacts/detail/StreamItemAdapterTest.java
@@ -55,8 +55,8 @@ public void testGetCount_Empty() { mAdapter.setStreamItems(createStreamItemList(0)); - // There is actually one view: the header. - assertEquals(2, mAdapter.getCount()); + // The header and title are gone when there are no stream items. + assertEquals(0, mAdapter.getCount()); } public void testGetCount_NonEmpty() {