@@ -115,15 +115,12 @@ Item {
115115 verify(!category.expanded);
116116
117117 var initialHeight = category.height;
118− var middleHeight;
119118 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
120− tryCompareFunction(function() { middleHeight = category.height; return category.height > initialHeight; }, true);
121− tryCompare(category, "expanded", true);
122− tryCompareFunction(function() { return category.height > middleHeight; }, true);
119+ verify(category.expanded);
120+ tryCompareFunction(function() { return category.height > initialHeight; }, true);
123121
124122 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
125− verify(category.expandable);
126− tryCompare(category, "expanded", false);
123+ verify(!category.expanded);
127124 }
128125
129126 function test_filter_expand_expand_collapse() {