@@ -108,14 +108,14 @@ Item {
109 function test_enterSpread_data() {
109 function test_enterSpread_data() {
111− {tag: "<position1 (linear movement)", positionMarker: "positionMarker1", linear: true, offset: -1, endStage: 0, targetStage: 0, newFocusedIndex: 1 },
111+ {tag: "<position1 (linear movement)", positionMarker: "positionMarker1", linear: true, offset: -1, endPhase: 0, targetPhase: 0, newFocusedIndex: 1 },
112− {tag: "<position1 (non-linear movement)", positionMarker: "positionMarker1", linear: false, offset: -1, endStage: 0, targetStage: 0, newFocusedIndex: 0 },
112+ {tag: "<position1 (non-linear movement)", positionMarker: "positionMarker1", linear: false, offset: -1, endPhase: 0, targetPhase: 0, newFocusedIndex: 0 },
113− {tag: ">position1", positionMarker: "positionMarker1", linear: true, offset: +1, endStage: 0, targetStage: 0, newFocusedIndex: 1 },
113+ {tag: ">position1", positionMarker: "positionMarker1", linear: true, offset: +1, endPhase: 0, targetPhase: 0, newFocusedIndex: 1 },
114− {tag: "<position2 (linear)", positionMarker: "positionMarker2", linear: true, offset: -1, endStage: 0, targetStage: 0, newFocusedIndex: 1 },
114+ {tag: "<position2 (linear)", positionMarker: "positionMarker2", linear: true, offset: -1, endPhase: 0, targetPhase: 0, newFocusedIndex: 1 },
115− {tag: "<position2 (non-linear)", positionMarker: "positionMarker2", linear: false, offset: -1, endStage: 0, targetStage: 0, newFocusedIndex: 1 },
115+ {tag: "<position2 (non-linear)", positionMarker: "positionMarker2", linear: false, offset: -1, endPhase: 0, targetPhase: 0, newFocusedIndex: 1 },
116− {tag: ">position2", positionMarker: "positionMarker2", linear: true, offset: +1, endStage: 1, targetStage: 0, newFocusedIndex: 1 },
116+ {tag: ">position2", positionMarker: "positionMarker2", linear: true, offset: +1, endPhase: 1, targetPhase: 0, newFocusedIndex: 1 },
117− {tag: "<position3", positionMarker: "positionMarker3", linear: true, offset: -1, endStage: 1, targetStage: 0, newFocusedIndex: 1 },
117+ {tag: "<position3", positionMarker: "positionMarker3", linear: true, offset: -1, endPhase: 1, targetPhase: 0, newFocusedIndex: 1 },
118− {tag: ">position3", positionMarker: "positionMarker3", linear: true, offset: +1, endStage: 2, targetStage: 2, newFocusedIndex: 2 },
118+ {tag: ">position3", positionMarker: "positionMarker3", linear: true, offset: +1, endPhase: 2, targetPhase: 2, newFocusedIndex: 2 },
@@ -135,7 +135,7 @@ Item {
135 touchFlick(phoneStage, startX, startY, endX, endY,
135 touchFlick(phoneStage, startX, startY, endX, endY,
136 true /* beginTouch */, false /* endTouch */, units.gu(10), 50);
136 true /* beginTouch */, false /* endTouch */, units.gu(10), 50);
138− tryCompare(spreadView, "stage", data.endStage)
138+ tryCompare(spreadView, "phase", data.endPhase)
140 if (!data.linear) {
140 if (!data.linear) {
141 touchFlick(phoneStage, endX, endY, endX + units.gu(.5), endY,
141 touchFlick(phoneStage, endX, endY, endX + units.gu(.5), endY,
@@ -146,9 +146,9 @@ Item {
147 touchRelease(phoneStage, endX, endY);
147 touchRelease(phoneStage, endX, endY);
149− tryCompare(spreadView, "stage", data.targetStage)
149+ tryCompare(spreadView, "phase", data.targetPhase)
151− if (data.targetStage == 2) {
151+ if (data.targetPhase == 2) {
152 var app2 = findChild(spreadView, "appDelegate2");
152 var app2 = findChild(spreadView, "appDelegate2");
153 mouseClick(app2, units.gu(1), units.gu(1));
153 mouseClick(app2, units.gu(1), units.gu(1));
@@ -183,7 +183,7 @@ Item {
183 touchFlick(phoneStage, startX, startY, endX, endY,
183 touchFlick(phoneStage, startX, startY, endX, endY,
184 true /* beginTouch */, true /* endTouch */, units.gu(10), 50);
184 true /* beginTouch */, true /* endTouch */, units.gu(10), 50);
186− tryCompare(spreadView, "stage", 2);
186+ tryCompare(spreadView, "phase", 2);
188 var tile = findChild(spreadView, "appDelegate" + data.index);
188 var tile = findChild(spreadView, "appDelegate" + data.index);
189 var appId = ApplicationManager.get(data.index).appId;
189 var appId = ApplicationManager.get(data.index).appId;
@@ -199,7 +199,7 @@ Item {
199 console.log("clicking app", data.index, "(", appId, ")")
199 console.log("clicking app", data.index, "(", appId, ")")
200 mouseClick(spreadView, tile.mapToItem(spreadView).x + units.gu(1), spreadView.height / 2)
200 mouseClick(spreadView, tile.mapToItem(spreadView).x + units.gu(1), spreadView.height / 2)
201 tryCompare(ApplicationManager, "focusedApplicationId", appId);
201 tryCompare(ApplicationManager, "focusedApplicationId", appId);
202− tryCompare(spreadView, "stage", 0);
202+ tryCompare(spreadView, "phase", 0);
205 function test_animateAppStartup() {
205 function test_animateAppStartup() {