Fixed FriendListItem test to ignore item rects because fonts might
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Thu, 26 Aug 2010 11:48:51 +0000 (14:48 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Thu, 26 Aug 2010 11:48:51 +0000 (14:48 +0300)
differ.

tests/ui/friendlistitem/testfriendlistitem.cpp

index 216c579..6b8a887 100644 (file)
@@ -103,12 +103,7 @@ void TestFriendListItem::toggleSelection()
     QVERIFY(subItems);
     QCOMPARE(subItems->count(), 3);
 
-    QCOMPARE(subItems->at(0)->textRect(), QRect(0, 0, 250, 66));
-    QCOMPARE(subItems->at(1)->textRect(), QRect(0, 0, 250, 22));
-    QCOMPARE(subItems->at(2)->textRect(), QRect(0, 0, 250, 44));
-
     friendListItem->toggleSelection();
-    QCOMPARE(friendListItem->data(ITEM_SIZE_HINT_INDEX).toSize(), QSize(368, 142 + 3 * 22));
     QCOMPARE(friendListItem->data(ITEM_EXPANDED_INDEX).toBool(), true);
 
     friendListItem->toggleSelection();