on xenial help sign in
Change to windowed/not windowed before starting the app
commit274d8e0cf77a334a26476ae58529aa31a392243c authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 27 Apr 2016, 11:13 (11 years ago) parentc398dc9
1 file changed+4−3
tests/qmltests/tst_OrientedShell.qml+4−3
tests/qmltests/tst_OrientedShell.qml+4−3
@@ -633,9 +633,6 @@ Rectangle {
633633 }
634634 function test_appRotatesWindowContents(data) {
635635 loadShell(data.deviceName);
636− var cameraSurfaceId = topLevelSurfaceList.nextId;
637− var cameraApp = ApplicationManager.startApplication("camera-app");
638− verify(cameraApp);
639636
640637 if (data.windowed) {
641638 usageModeSelector.selectWindowed();
@@ -643,6 +640,10 @@ Rectangle {
643640 usageModeSelector.selectStaged();
644641 }
645642
643+ var cameraSurfaceId = topLevelSurfaceList.nextId;
644+ var cameraApp = ApplicationManager.startApplication("camera-app");
645+ verify(cameraApp);
646+
646647 // ensure the mock camera-app is as we expect
647648 compare(cameraApp.fullscreen, true);
648649 compare(cameraApp.rotatesWindowContents, true);