@@ -3218,6 +3218,8 @@ Rectangle {
3218 var appDelegate = startApplication("gmail-webapp");
3218 var appDelegate = startApplication("gmail-webapp");
3219 var appDelegate2 = startApplication("dialer-app");
3219 var appDelegate2 = startApplication("dialer-app");
3221+ tryCompare(appDelegate2.surface, "activeFocus", true);
3221 var maximizeButton = findChild(appDelegate2, "maximizeWindowButton");
3223 var maximizeButton = findChild(appDelegate2, "maximizeWindowButton");
3222 mouseClick(maximizeButton);
3224 mouseClick(maximizeButton);
3223 tryCompare(appDelegate2, "state", "maximized");
3225 tryCompare(appDelegate2, "state", "maximized");
@@ -3242,7 +3244,7 @@ Rectangle {
3242 if (data.showSpread) {
3244 if (data.showSpread) {
3243 tryCompare(stage, "spreadShown", true);
3245 tryCompare(stage, "spreadShown", true);
3245− tryCompareFunction(function() { return menuBarLoader.active === false; }, true);
3247+ tryCompare(panelMenuItem, "__popup", null);
3246 keyRelease(Qt.Key_Alt)
3248 keyRelease(Qt.Key_Alt)
3248 tryCompare(appDelegate.surface, "activeFocus", true);
3250 tryCompare(appDelegate.surface, "activeFocus", true);