@@ -387,5 +387,29 @@ Item {
387 compare(dragArea1.enabled, false);
387 compare(dragArea1.enabled, false);
388 compare(dragArea2.enabled, false);
388 compare(dragArea2.enabled, false);
391+ function test_leftEdge_data() {
393+ { tag: "normal", inSpread: false, leftEdgeDragWidth: units.gu(5), shouldMoveApp: true },
394+ { tag: "inSpread", inSpread: true, leftEdgeDragWidth: units.gu(5), shouldMoveApp: false }
398+ function test_leftEdge(data) {
401+ if (data.inSpread) {
405+ var focusedDelegate = findChild(phoneStage, "appDelegate0");
406+ phoneStage.inverseProgress = data.leftEdgeDragWidth;
408+ tryCompare(focusedDelegate, "x", data.shouldMoveApp ? data.leftEdgeDragWidth : 0);
410+ phoneStage.inverseProgress = 0;
412+ tryCompare(focusedDelegate, "x", units.gu(0));