on xenial help sign in
Fix GenericScopeView::test_expand_collapse, it wasn't fast enough.
commitd76c38dcffe493ba7bf97679d7ce9be25c31f733 authorMichał Sawicz <michal.sawicz@canonical.com> dateFri 11 Jul 2014, 16:16 (12 years ago) parentee49dcc
1 file changed+3−6
tests/qmltests/Dash/tst_GenericScopeView.qml+3−6
tests/qmltests/Dash/tst_GenericScopeView.qml+3−6
@@ -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() {