@@ -129,7 +129,7 @@ Item {
129129 var initialHeight = category.height;
130130 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
131131 verify(category.expanded);
132− tryCompareFunction(function() { return category.height > initialHeight; }, true);
132+ tryCompare(category, "height", category.item.expandedHeight + seeAll.height);
133133
134134 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
135135 verify(!category.expanded);