on xenial help sign in
Fix Dash test better.
commitdf78d108026581452738fd8442f9a1d101a3dc1f authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 14 Aug 2014, 01:38 (12 years ago) parent3eb4c4b
1 file changed+2−1
tests/qmltests/Dash/tst_Dash.qml+2−1
tests/qmltests/Dash/tst_Dash.qml+2−1
@@ -54,6 +54,7 @@ Item {
5454 tryCompare(dashContentList, "count", 0);
5555 scopes.load();
5656 tryCompare(dashContentList, "currentIndex", 0);
57+ tryCompare(dashContentList, "count", 6);
5758 }
5859
5960 function get_scope_data() {
@@ -316,7 +317,7 @@ Item {
316317 var stopX = units.gu(1)
317318 var stopY = startY;
318319 var retry = 0;
319− while (dashContentList.currentIndex != 2 && retry <= 10) {
320+ while (dashContentList.currentIndex != 2 && retry <= 2) {
320321 mouseFlick(dash, startX, startY, stopX, stopY)
321322 waitForRendering(dashContentList)
322323 retry++;