on xenial help sign in
fix remaining tests
7fab136Michael Zanetti
tests/qmltests/Stage/tst_DesktopStage.qml−7
@@ -693,13 +693,6 @@ Item {
693 tryCompare(facebookAppDelegate, "maximized", true);
693 tryCompare(facebookAppDelegate, "maximized", true);
694 }
694 }
695
695
696− function test_dashHasNoCloseButton() {
697− var dashAppDelegate = startApplication("unity8-dash");
698− verify(dashAppDelegate);
699− var closeButton = findChild(dashAppDelegate, "closeWindowButton");
700− tryCompare(closeButton, "visible", false);
701− }
702−
703 function test_hideMaximizeButtonWhenSizeConstrained() {
696 function test_hideMaximizeButtonWhenSizeConstrained() {
704 var dialerDelegate = startApplication("dialer-app");
697 var dialerDelegate = startApplication("dialer-app");
705
698
tests/qmltests/tst_Shell.qml+5
@@ -1276,6 +1276,11 @@ Rectangle {
1276 function test_tapOnRightEdgeReachesApplicationSurface() {
1276 function test_tapOnRightEdgeReachesApplicationSurface() {
1277 loadShell("phone");
1277 loadShell("phone");
1278 swipeAwayGreeter();
1278 swipeAwayGreeter();
1279+
1280+ var appSurfaceId = topLevelSurfaceList.nextId;
1281+ var app = ApplicationManager.startApplication("unity8-dash")
1282+ waitUntilAppWindowIsFullyLoaded(appSurfaceId);
1283+
1279 var topmostSpreadDelegate = findChild(shell, "appDelegate_" + topLevelSurfaceList.idAt(0));
1284 var topmostSpreadDelegate = findChild(shell, "appDelegate_" + topLevelSurfaceList.idAt(0));
1280 verify(topmostSpreadDelegate);
1285 verify(topmostSpreadDelegate);
1281
1286