on xenial help sign in
Make test_Shell non ultra slow again

By setting the timeout to 0 to findChild we know may return null (LP: #1597366) Approved by: Lukáš Tinkl, Michael Zanetti

commit3d4e2d5da2e501139bf403afdd3866cfc006d464 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 13 Sep 2016, 06:50 (10 years ago) parent1a92f91f8b6ea7
1 file changed+2−2
tests/qmltests/tst_Shell.qml+2−2
tests/qmltests/tst_Shell.qml+2−2
@@ -506,7 +506,7 @@ Rectangle {
506506 var greeter = findChild(shell, "greeter");
507507 verify(greeter);
508508
509− var loginList = findChild(greeter, "loginList");
509+ var loginList = findChild(greeter, "loginList", 0 /* timeout */);
510510 // Only present in WideView
511511 if (loginList) {
512512 var userList = findChild(loginList, "userList");
@@ -919,7 +919,7 @@ Rectangle {
919919
920920 function findAppWindowForSurfaceId(surfaceId) {
921921 // for PhoneStage and TabletStage
922− var delegate = findChild(shell, "spreadDelegate_" + surfaceId);
922+ var delegate = findChild(shell, "spreadDelegate_" + surfaceId, 0 /* timeout */);
923923 if (!delegate) {
924924 // for DesktopStage
925925 delegate = findChild(shell, "appDelegate_" + surfaceId);