@@ -34,6 +34,7 @@ import Powerd 0.1
34import Wizard 0.1 as Wizard
34import Wizard 0.1 as Wizard
36import "../../qml"
36import "../../qml"
38Rectangle {
39Rectangle {
@@ -102,19 +103,6 @@ Rectangle {
102 GSettingsController.setUsageMode("com.canonical.Unity8", "Staged")
103 GSettingsController.setUsageMode("com.canonical.Unity8", "Staged")
110− width: units.gu(100)
111− height: units.gu(71)
115− GSettingsController.setUsageMode("com.canonical.Unity8", "Windowed")
@@ -143,19 +131,16 @@ Rectangle {
144 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
132 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
145 spacing: units.gu(1)
133 spacing: units.gu(1)
147− anchors { left: parent.left; right: parent.right }
148− Button {
134+ Button {
149− text: "Show Greeter"
135+ text: "Show Greeter"
150− activeFocusOnPress: false
136+ activeFocusOnPress: false
151− onClicked: {
137+ onClicked: {
152− if (shellLoader.status !== Loader.Ready)
138+ if (shellLoader.status !== Loader.Ready)
155− var greeter = testCase.findChild(shellLoader.item, "greeter");
141+ var greeter = testCase.findChild(shellLoader.item, "greeter");
156− if (!greeter.shown) {
142+ if (!greeter.shown) {
157− LightDM.Greeter.showGreeter();
143+ LightDM.Greeter.showGreeter();
@@ -175,13 +160,32 @@ Rectangle {
175 anchors { left: parent.left; right: parent.right }
160 anchors { left: parent.left; right: parent.right }
176 activeFocusOnPress: false
161 activeFocusOnPress: false
177 text: "Size"
162 text: "Size"
178− model: ["phone", "tablet", "desktop"]
163+ model: ["phone", "tablet"]
179 onSelectedIndexChanged: {
164 onSelectedIndexChanged: {
180 shellLoader.active = false;
165 shellLoader.active = false;
181 shellLoader.state = model[selectedIndex];
166 shellLoader.state = model[selectedIndex];
182 shellLoader.active = true;
167 shellLoader.active = true;
184− MouseTouchEmulationCheckbox { color: "white" }
170+ MouseTouchEmulationCheckbox {
177+ anchors { left: parent.left; right: parent.right }
178+ spacing: units.gu(1)
180+ Label { text: "Applications"; font.bold: true }
184+ model: ApplicationManager.availableApplications
185+ ApplicationCheckBox {
@@ -260,6 +264,7 @@ Rectangle {
262 function cleanup() {
266 function cleanup() {
267+ mouseEmulation.checked = true;
263 tryCompare(shell, "enabled", true); // make sure greeter didn't leave us in disabled state
268 tryCompare(shell, "enabled", true); // make sure greeter didn't leave us in disabled state
264 tearDown();
269 tearDown();
@@ -1144,8 +1149,7 @@ Rectangle {
1144 loadShell("phone");
1149 loadShell("phone");
1145 swipeAwayGreeter();
1150 swipeAwayGreeter();
1146 AccountsService.backgroundFile = data.accounts;
1151 AccountsService.backgroundFile = data.accounts;
1147− var backgroundSettings = findInvisibleChild(shell, "backgroundSettings");
1152+ GSettingsController.setPictureUri("org.gnome.desktop.background", data.gsettings);
1148− backgroundSettings.pictureUri = data.gsettings;
1150 if (data.output === "defaultBackground") {
1154 if (data.output === "defaultBackground") {
1151 tryCompare(shell, "background", shell.defaultBackground);
1155 tryCompare(shell, "background", shell.defaultBackground);
@@ -1202,5 +1206,18 @@ Rectangle {
1202 tryCompare(passwordInput, "focus", true)
1206 tryCompare(passwordInput, "focus", true)
1210+ function test_stageLoader_data() {
1212+ {tag: "phone", source: "Stages/PhoneStage.qml"},
1213+ {tag: "tablet", source: "Stages/TabletStage.qml"}
1217+ function test_stageLoader(data) {
1218+ loadShell(data.tag);
1219+ var stageLoader = findChild(shell, "applicationsDisplayLoader");
1220+ verify(String(stageLoader.source).indexOf(data.source) >= 0);