113
119
function init() {
114
120
tryCompare(shell, "enabled", true); // enabled by greeter when ready
121
unity8Settings.usageMode = "Staged";
115
122
AccountsService.demoEdges = false;
116
123
AccountsService.demoEdges = true;
117
124
swipeAwayGreeter();
187
194
function checkRightEdge() {
188
touchFlick(shell, shell.width, halfHeight, halfWidth, halfHeight);
195
if (unity8Settings.usageMode === "Staged") {
196
touchFlick(shell, shell.width, halfHeight, halfWidth, halfHeight);
190
var stage = findChild(shell, "stage");
191
var spreadView = findChild(stage, "spreadView");
192
tryCompare(spreadView, "phase", 0);
198
var stage = findChild(shell, "stage");
199
var spreadView = findChild(stage, "spreadView");
200
tryCompare(spreadView, "phase", 0);
195
204
function checkBottomEdge() {
196
205
// Can't actually check effect of swipe, since dash isn't really loaded
197
206
var applicationsDisplayLoader = findChild(shell, "applicationsDisplayLoader");
198
tryCompare(applicationsDisplayLoader.item, "interactive", false);
207
tryCompare(applicationsDisplayLoader, "interactive", false);
201
210
function checkFinished() {
268
function test_walkthroughOnDesktop() {
269
unity8Settings.usageMode = "Windowed";
270
var page = goToPage("tutorialLeftFinish");
271
var tick = findChild(page, "tick");
259
276
function test_launcherShortDrag() {
260
277
// goToPage does a normal launcher pull. But here we want to test
261
278
// just barely pulling the launcher out and letting go (i.e. not