@@ -110,7 +110,7 @@ Rectangle {
110 {tag: "swipeToClose=true closeable=true -> appWindow moves away",
110 {tag: "swipeToClose=true closeable=true -> appWindow moves away",
111 swipeToClose: true, closeable: true },
111 swipeToClose: true, closeable: true },
113− {tag: "swipeToClose=true closeable=alse -> appWindow bounces back",
113+ {tag: "swipeToClose=true closeable=false -> appWindow bounces back",
114 swipeToClose: true, closeable: false },
114 swipeToClose: true, closeable: false },
116 {tag: "swipeToClose=false -> appWindow stays put",
116 {tag: "swipeToClose=false -> appWindow stays put",
@@ -134,13 +134,16 @@ Rectangle {
134 touchX /* fromX */, fromY, touchX /* toX */, toY,
134 touchX /* fromX */, fromY, touchX /* toX */, toY,
135 true /* beginTouch */, false /* endTouch */, dragArea.minSpeedToClose * 1.1 /* speed */);
135 true /* beginTouch */, false /* endTouch */, dragArea.minSpeedToClose * 1.1 /* speed */);
138 if (data.swipeToClose) {
137 if (data.swipeToClose) {
139 verify(appWindowWithShadow.y < 0);
138 verify(appWindowWithShadow.y < 0);
140 var threshold = findChild(spreadDelegateLoader.item, "dragArea").threshold
139 var threshold = findChild(spreadDelegateLoader.item, "dragArea").threshold
140+ if (data.closeable) {
141− // Verify that the delegate started moving exactly "threshold" after the finger movement
141+ // Verify that the delegate started moving exactly "threshold" after the finger movement
142− // and did not jump up to the finger, but lags the threshold behind
142+ // and did not jump up to the finger, but lags the threshold behind
143− compare(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance), threshold);
143+ compare(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance), threshold);
145+ verify(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance) > threshold);
145 touchRelease(spreadDelegateLoader.item, touchX, toY - units.gu(1));
148 touchRelease(spreadDelegateLoader.item, touchX, toY - units.gu(1));