on xenial help sign in
Make test more stable

Been running for almost 2 hours without any failure

commitbfc16a8ab4931e1e43d0f2c00a994b206c61afa3 authorAlbert Astals Cid <albert.astals@canonical.com> dateMon 4 May 2015, 14:44 (11 years ago) parentfac11eb
1 file changed+6−1
tests/qmltests/Dash/tst_DashContent.qml+6−1
tests/qmltests/Dash/tst_DashContent.qml+6−1
@@ -153,7 +153,7 @@ Item {
153153
154154 tryCompare(scope, "status", Loader.Ready);
155155
156− var categoryListView = findChild(dashContentList, "categoryListView");
156+ var categoryListView = findChild(scope, "categoryListView");
157157 categoryListView.contentY = units.gu(10);
158158
159159 compare(dashContentList.currentItem.item.objectName, "MockScope1")
@@ -353,6 +353,8 @@ Item {
353353 compare(backButton.visible, true);
354354
355355 tryCompare(navigationList1.navigation, "loaded", true);
356+ tryCompare(navigationList1, "implicitHeight", navigationList1.itemHeight * 10);
357+ tryCompare(navigationList1, "height", navigationList1.implicitHeight);
356358 navigation = findChild(dashNavigationButton, "navigation1child2");
357359 mouseClick(navigation);
358360 compare(dashNavigationButton.showList, false);
@@ -386,6 +388,9 @@ Item {
386388 mouseClick(dashNavigationButton);
387389 compare(dashNavigationButton.showList, true);
388390 tryCompare(navigationListView.currentItem.navigation, "loaded", true);
391+ var navigationList0 = findChild(dashNavigationButton, "navigation0");
392+ tryCompare(navigationList0, "implicitHeight", navigationList0.itemHeight * 8);
393+ tryCompare(navigationList0, "height", navigationList0.implicitHeight);
389394 navigation = findChild(dashNavigationButton, "navigation0child2");
390395 mouseClick(navigation);
391396 compare(dashNavigationButton.showList, true);