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

commita35690027e9d83f7661a01a05a76538513c126cd authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 22 Sep 2016, 07:41 (10 years ago) parentaf925dbf8b6ea7
1 file changed+2−2
tests/qmltests/tst_Shell.qml+2−2
tests/qmltests/tst_Shell.qml+2−2
@@ -519,7 +519,7 @@ Rectangle {
519519 var greeter = findChild(shell, "greeter");
520520 verify(greeter);
521521
522− var loginList = findChild(greeter, "loginList");
522+ var loginList = findChild(greeter, "loginList", 0 /* timeout */);
523523 // Only present in WideView
524524 if (loginList) {
525525 var userList = findChild(loginList, "userList");
@@ -936,7 +936,7 @@ Rectangle {
936936
937937 function findAppWindowForSurfaceId(surfaceId) {
938938 // for PhoneStage and TabletStage
939− var delegate = findChild(shell, "spreadDelegate_" + surfaceId);
939+ var delegate = findChild(shell, "spreadDelegate_" + surfaceId, 0 /* timeout */);
940940 if (!delegate) {
941941 // for DesktopStage
942942 delegate = findChild(shell, "appDelegate_" + surfaceId);