on xenial help sign in
Update tst_Tutorial.qml due to shellRotation changes
ff623b9Daniel d'Andrada
tests/qmltests/Tutorial/tst_Tutorial.qml+2−8
@@ -46,11 +46,6 @@ Item {
46 }
46 }
47 }
47 }
48
48
49− GSettings {
50− id: unity8Settings
51− schema.id: "com.canonical.Unity8"
52− }
53−
54 Component.onCompleted: {
49 Component.onCompleted: {
55 // must set the mock mode before loading the Shell
50 // must set the mock mode before loading the Shell
56 LightDM.Greeter.mockMode = "single-pin";
51 LightDM.Greeter.mockMode = "single-pin";
@@ -118,7 +113,6 @@ Item {
118
113
119 function init() {
114 function init() {
120 tryCompare(shell, "enabled", true); // enabled by greeter when ready
115 tryCompare(shell, "enabled", true); // enabled by greeter when ready
121− unity8Settings.usageMode = "Staged";
122 AccountsService.demoEdges = false;
116 AccountsService.demoEdges = false;
123 AccountsService.demoEdges = true;
117 AccountsService.demoEdges = true;
124 swipeAwayGreeter();
118 swipeAwayGreeter();
@@ -192,7 +186,7 @@ Item {
192 }
186 }
193
187
194 function checkRightEdge() {
188 function checkRightEdge() {
195− if (unity8Settings.usageMode === "Staged") {
189+ if (shell.usageScenario === "phone") {
196 touchFlick(shell, shell.width, halfHeight, halfWidth, halfHeight);
190 touchFlick(shell, shell.width, halfHeight, halfWidth, halfHeight);
197
191
198 var stage = findChild(shell, "stage");
192 var stage = findChild(shell, "stage");
@@ -270,7 +264,7 @@ Item {
270 }
264 }
271
265
272 function test_walkthroughOnDesktop() {
266 function test_walkthroughOnDesktop() {
273− unity8Settings.usageMode = "Windowed";
267+ shell.usageScenario = "desktop";
274 var page = goToPage("tutorialLeftFinish");
268 var page = goToPage("tutorialLeftFinish");
275 var tick = findChild(page, "tick");
269 var tick = findChild(page, "tick");
276 tap(tick);
270 tap(tick);