Added ListView filter by text pattern test cases.
[situare] / tests / ui / friendlistitem / testfriendlistitem.cpp
index 048c1f6..9167ed5 100644 (file)
@@ -78,7 +78,6 @@ void TestFriendListItem::initTestCase()
 void TestFriendListItem::setUserData()
 {
     friendListItem->setUserData(user1);
-    QCOMPARE(friendListItem->id(), QString("id1"));
     QCOMPARE(friendListItem->coordinates().latitude(), GeoCoordinate(12.22, 23.33).latitude());
     QCOMPARE(friendListItem->coordinates().longitude(), GeoCoordinate(12.22, 23.33).longitude());
 
@@ -87,14 +86,12 @@ void TestFriendListItem::setUserData()
     QCOMPARE(profileImage, QPixmap(":/res/images/profile_pic_border.png"));
 
     friendListItem->setUserData(user2);
-    QCOMPARE(friendListItem->id(), QString("id2"));
     QCOMPARE(friendListItem->coordinates().latitude(), GeoCoordinate(12.1, 44.33).latitude());
     QCOMPARE(friendListItem->coordinates().longitude(), GeoCoordinate(12.1, 44.33).longitude());
 }
 
 void TestFriendListItem::toggleSelection()
 {
-    QCOMPARE(friendListItem->id(), QString("id2"));
     QCOMPARE(friendListItem->data(ITEM_SIZE_HINT_INDEX).toSize(), QSize(368, 142));
 
     QList<ExtendedListItemStore *> *subItems = (QList<ExtendedListItemStore *> *)