on xenial help sign in
Fix GenericScopeView::test_expand_collapse, it wasn't fast enough.
d76c38dMichał Sawicz
tests/qmltests/Dash/tst_GenericScopeView.qml+3−6
@@ -115,15 +115,12 @@ Item {
115 verify(!category.expanded);
115 verify(!category.expanded);
116
116
117 var initialHeight = category.height;
117 var initialHeight = category.height;
118− var middleHeight;
119 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
118 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
120− tryCompareFunction(function() { middleHeight = category.height; return category.height > initialHeight; }, true);
119+ verify(category.expanded);
121− tryCompare(category, "expanded", true);
122− tryCompareFunction(function() { return category.height > middleHeight; }, true);
120+ tryCompareFunction(function() { return category.height > initialHeight; }, true);
123
121
124 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
122 mouseClick(seeAll, seeAll.width / 2, seeAll.height / 2);
125− verify(category.expandable);
123+ verify(!category.expanded);
126− tryCompare(category, "expanded", false);
127 }
124 }
128
125
129 function test_filter_expand_expand_collapse() {
126 function test_filter_expand_expand_collapse() {