@@ -515,7 +515,6 @@ Rectangle {
515515 compare(primaryDelegate.focus, true);
516516 compare(primaryApp.rotatesWindowContents, false);
517517 compare(primaryApp.supportedOrientations, Qt.PrimaryOrientation);
518− compare(primaryApp.stage, ApplicationInfoInterface.MainStage);
519518
520519 tryCompareFunction(function(){return primaryDelegate.surface != null;}, true);
521520 verify(checkAppSurfaceOrientation(primaryAppWindow, primaryApp, root.primaryOrientationAngle));
@@ -559,7 +558,8 @@ Rectangle {
559558 compare(ApplicationManager.focusedApplicationId, "primary-oriented-app");
560559 compare(primaryApp.rotatesWindowContents, false);
561560 compare(primaryApp.supportedOrientations, Qt.PrimaryOrientation);
562− compare(primaryApp.stage, ApplicationInfoInterface.MainStage);
561+ var primaryDelegate = findChild(shell, "spreadDelegate_" + primarySurfaceId);
562+ compare(primaryDelegate.stage, ApplicationInfoInterface.MainStage);
563563
564564 tryCompareFunction(function(){return primaryApp.surfaceList.count > 0;}, true);
565565
@@ -599,7 +599,6 @@ Rectangle {
599599 compare(gmailApp.rotatesWindowContents, false);
600600 compare(gmailApp.supportedOrientations, Qt.PortraitOrientation | Qt.LandscapeOrientation
601601 | Qt.InvertedPortraitOrientation | Qt.InvertedLandscapeOrientation);
602− compare(gmailApp.stage, ApplicationInfoInterface.MainStage);
603602
604603 // wait until it's able to rotate
605604 tryCompare(shell, "orientationChangesEnabled", true);
@@ -724,7 +723,6 @@ Rectangle {
724723 compare(gmailApp.rotatesWindowContents, false);
725724 compare(gmailApp.supportedOrientations, Qt.PortraitOrientation | Qt.LandscapeOrientation
726725 | Qt.InvertedPortraitOrientation | Qt.InvertedLandscapeOrientation);
727− compare(gmailApp.stage, ApplicationInfoInterface.MainStage);
728726
729727 waitUntilAppWindowIsFullyLoaded(gmailSurfaceId);
730728
@@ -736,7 +734,10 @@ Rectangle {
736734 compare(musicApp.rotatesWindowContents, false);
737735 compare(musicApp.supportedOrientations, Qt.PortraitOrientation | Qt.LandscapeOrientation
738736 | Qt.InvertedPortraitOrientation | Qt.InvertedLandscapeOrientation);
739− compare(musicApp.stage, ApplicationInfoInterface.MainStage);
737+ if (data.deviceName === "manta" || data.deviceName === "flo") {
738+ var musicDelegate = findChild(shell, "spreadDelegate_" + musicSurfaceId);
739+ compare(musicDelegate.stage, ApplicationInfoInterface.MainStage);
740+ }
740741
741742 waitUntilAppWindowIsFullyLoaded(musicSurfaceId);
742743 tryCompare(shell, "orientationChangesEnabled", true);
@@ -889,6 +890,7 @@ Rectangle {
889890 ];
890891 }
891892 function test_appInSideStageDoesntRotateOnStartUp(data) {
893+ WindowStateStorage.saveStage("twitter-webapp", ApplicationInfoInterface.SideStage)
892894 loadShell(data.deviceName);
893895
894896 var twitterDelegate = null;
@@ -905,9 +907,11 @@ Rectangle {
905907 signalSpy.target = null;
906908 signalSpy.signalName = "runningChanged";
907909
910+ var twitterSurfaceId = topLevelSurfaceList.nextId;
908911 var twitterApp = ApplicationManager.startApplication("twitter-webapp");
909912 verify(twitterApp);
910− twitterApp.stage = ApplicationInfoInterface.SideStage;
913+ var twitterDelegate = findChild(shell, "spreadDelegate_" + twitterSurfaceId);
914+ compare(twitterDelegate.stage, ApplicationInfoInterface.SideStage);
911915
912916 // ensure the mock twitter-webapp is as we expect
913917 compare(twitterApp.rotatesWindowContents, false);