on xenial help sign in
reshuffle while
70c29c3Albert Astals Cid
tests/utils/modules/Unity/Test/UnityTestCase.qml+2−4
@@ -206,11 +206,9 @@ TestCase {
206 var child = findChildIn(obj, prop, objectName);
206 var child = findChildIn(obj, prop, objectName);
207
207
208 while (timeSpent < timeout && !child) {
208 while (timeSpent < timeout && !child) {
209+ wait(50)
210+ timeSpent += 50
209 child = findChildIn(obj, prop, objectName);
211 child = findChildIn(obj, prop, objectName);
210− if (!child) {
211− wait(50)
212− timeSpent += 50
213− }
214 }
212 }
215 return child;
213 return child;
216 }
214 }