on xenial help sign in
Do a trycompare instead of a wait

Let's see if this makes slow jenkins vm machines happier

commit6c454b6b5a5d34d61d32a25c5f5accfca4dd417d authorAlbert Astals <albert.astals@canonical.com> dateThu 5 Dec 2013, 15:53 (13 years ago) parenta67b0cb
1 file changed+2−3
tests/qmltests/Dash/tst_GenericScopeView.qml+2−3
tests/qmltests/Dash/tst_GenericScopeView.qml+2−3
@@ -235,10 +235,9 @@ Item {
235235 verify(category.filtered);
236236
237237 var initialHeight = category.height;
238+ var middleHeight;
238239 mouseClick(header, header.width / 2, header.height / 2);
239− wait(100);
240− verify(category.height > initialHeight);
241− var middleHeight = category.height;
240+ tryCompareFunction(function() { middleHeight = category.height; return category.height > initialHeight; }, true);
242241 tryCompare(category, "filtered", false);
243242 verify(category.height > middleHeight);
244243