@@ -65,6 +65,7 @@ Rectangle {
65 property int shellOrientation: Qt.PortraitOrientation
65 property int shellOrientation: Qt.PortraitOrientation
66 property int nativeOrientation: Qt.PortraitOrientation
66 property int nativeOrientation: Qt.PortraitOrientation
67 property int primaryOrientation: Qt.PortraitOrientation
67 property int primaryOrientation: Qt.PortraitOrientation
68+ property string mode: "full-greeter"
69 state: "phone"
70 state: "phone"
@@ -114,6 +115,7 @@ Rectangle {
114 native_: shellLoader.nativeOrientation
115 native_: shellLoader.nativeOrientation
115 primary: shellLoader.primaryOrientation
116 primary: shellLoader.primaryOrientation
118+ mode: shellLoader.mode
117 Component.onDestruction: {
119 Component.onDestruction: {
118 shellLoader.itemDestroyed = true;
120 shellLoader.itemDestroyed = true;
@@ -508,6 +510,7 @@ Rectangle {
508 AccountsService.demoEdges = false;
510 AccountsService.demoEdges = false;
509 AccountsService.demoEdgesCompleted = [];
511 AccountsService.demoEdgesCompleted = [];
510 Wizard.System.wizardEnabled = false;
512 Wizard.System.wizardEnabled = false;
513+ shellLoader.mode = "full-greeter";
512 // kill all (fake) running apps
515 // kill all (fake) running apps
513 killApps();
516 killApps();
@@ -2454,5 +2457,22 @@ Rectangle {
2455 tryCompare(appDelegate, "state", "normal");
2458 tryCompare(appDelegate, "state", "normal");
2461+ function test_fullShellModeHasNoInitialGreeter() {
2462+ setLightDMMockMode("single-pin");
2463+ shellLoader.mode = "full-shell";
2464+ loadShell("phone");
2465+ shell.usageScenario = "phone";
2466+ waitForRendering(shell);
2468+ var greeter = findChild(shell, "greeter");
2469+ verify(!greeter.shown);
2470+ verify(!greeter.locked);
2474+ verify(greeter.shown);
2475+ verify(greeter.locked);