@@ -42,7 +42,7 @@ Item {
42 anchors { fill: parent; rightMargin: units.gu(30) }
42 anchors { fill: parent; rightMargin: units.gu(30) }
43 focus: true
43 focus: true
44 dragAreaWidth: units.gu(2)
44 dragAreaWidth: units.gu(2)
45− interactive: true
45+ allowInteractivity: true
46 shellOrientation: Qt.PortraitOrientation
46 shellOrientation: Qt.PortraitOrientation
47 orientations: Orientations {}
47 orientations: Orientations {}
48 applicationManager: ApplicationManager
48 applicationManager: ApplicationManager
@@ -219,7 +219,7 @@ Item {
220 {tag: "<breakPoint (trigger)", progress: .2, cancel: false, endState: "staged", newFocusedIndex: 1 },
220 {tag: "<breakPoint (trigger)", progress: .2, cancel: false, endState: "staged", newFocusedIndex: 1 },
221 {tag: "<breakPoint (cancel)", progress: .2, cancel: true, endState: "staged", newFocusedIndex: 0 },
221 {tag: "<breakPoint (cancel)", progress: .2, cancel: true, endState: "staged", newFocusedIndex: 0 },
222− {tag: ">breakPoint (trigger)", progress: .5, cancel: false, endState: "spread", newFocusedIndex: 0 },
222+ {tag: ">breakPoint (trigger)", progress: .5, cancel: false, endState: "spread", newFocusedIndex: null },
223 {tag: ">breakPoint (cancel)", progress: .8, cancel: true, endState: "staged", newFocusedIndex: 0 },
223 {tag: ">breakPoint (cancel)", progress: .8, cancel: true, endState: "staged", newFocusedIndex: 0 },
@@ -234,7 +234,6 @@ Item {
234 var endY = startY;
234 var endY = startY;
235 var endX = stage.width - (stage.width * data.progress) - stage.dragAreaWidth;
235 var endX = stage.width - (stage.width * data.progress) - stage.dragAreaWidth;
237− var oldFocusedApp = ApplicationManager.get(0);
238 var newFocusedApp = ApplicationManager.get(data.newFocusedIndex);
237 var newFocusedApp = ApplicationManager.get(data.newFocusedIndex);
240 touchFlick(stage, startX, startY, endX, endY,
239 touchFlick(stage, startX, startY, endX, endY,
@@ -247,7 +246,7 @@ Item {
247 touchRelease(stage, endX, endY); }
246 touchRelease(stage, endX, endY); }
249 tryCompare(stage, "state", data.endState);
248 tryCompare(stage, "state", data.endState);
250− tryCompare(ApplicationManager, "focusedApplicationId", data.endState == "spread" ? oldFocusedApp.appId : newFocusedApp.appId);
249+ tryCompare(ApplicationManager, "focusedApplicationId", data.endState == "spread" ? "" : newFocusedApp.appId);
253 function test_selectAppFromSpread_data() {
252 function test_selectAppFromSpread_data() {