on xenial help sign in
Change to windowed/not windowed before starting the app
274d8e0Albert Astals Cid
tests/qmltests/tst_OrientedShell.qml+4−3
@@ -633,9 +633,6 @@ Rectangle {
633 }
633 }
634 function test_appRotatesWindowContents(data) {
634 function test_appRotatesWindowContents(data) {
635 loadShell(data.deviceName);
635 loadShell(data.deviceName);
636− var cameraSurfaceId = topLevelSurfaceList.nextId;
637− var cameraApp = ApplicationManager.startApplication("camera-app");
638− verify(cameraApp);
639
636
640 if (data.windowed) {
637 if (data.windowed) {
641 usageModeSelector.selectWindowed();
638 usageModeSelector.selectWindowed();
@@ -643,6 +640,10 @@ Rectangle {
643 usageModeSelector.selectStaged();
640 usageModeSelector.selectStaged();
644 }
641 }
645
642
643+ var cameraSurfaceId = topLevelSurfaceList.nextId;
644+ var cameraApp = ApplicationManager.startApplication("camera-app");
645+ verify(cameraApp);
646+
646 // ensure the mock camera-app is as we expect
647 // ensure the mock camera-app is as we expect
647 compare(cameraApp.fullscreen, true);
648 compare(cameraApp.fullscreen, true);
648 compare(cameraApp.rotatesWindowContents, true);
649 compare(cameraApp.rotatesWindowContents, true);