@@ -137,9 +137,10 @@ Rectangle {
138 if (data.swipeToClose) {
138 if (data.swipeToClose) {
139 verify(appWindowWithShadow.y < 0);
139 verify(appWindowWithShadow.y < 0);
140+ var threshold = findChild(spreadDelegateLoader.item, "dragArea").threshold
140− // Verify that the delegate started moving exactly 2 gus after the finger movement
141+ // Verify that the delegate started moving exactly "threshold" after the finger movement
141− // and did not jump up to the finger, but lags those 2 gus behind
142+ // and did not jump up to the finger, but lags the threshold behind
142− verify(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance) == units.gu(2));
143+ verify(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance) == threshold);
144 touchRelease(spreadDelegateLoader.item, touchX, toY - units.gu(1));
145 touchRelease(spreadDelegateLoader.item, touchX, toY - units.gu(1));