on xenial help sign in
Convert while into tryCompareFunction
b978a0bAlbert Astals Cid
tests/qmltests/Dash/tst_GenericScopeView.qml+6−5
@@ -107,11 +107,12 @@ Item {
107 {
107 {
108 var categoryListView = findChild(genericScopeView, "categoryListView");
108 var categoryListView = findChild(genericScopeView, "categoryListView");
109 waitForRendering(categoryListView);
109 waitForRendering(categoryListView);
110− while (!categoryListView.atYEnd) {
110+ tryCompareFunction(function() {
111− mouseFlick(genericScopeView, genericScopeView.width/2, genericScopeView.height - units.gu(8),
111+ mouseFlick(genericScopeView, genericScopeView.width/2, genericScopeView.height - units.gu(8),
112− genericScopeView.width/2, genericScopeView.y)
112+ genericScopeView.width/2, genericScopeView.y)
113− tryCompare(categoryListView, "moving", false);
113+ tryCompare(categoryListView, "moving", false);
114− }
114+ return categoryListView.atYEnd;
115+ }, true);
115 }
116 }
116
117
117 function test_isActive() {
118 function test_isActive() {