on xenial help sign in
adjust to new threshold and non-jumping behavior
commit027df6b68a905764c6b6891067e12ac00bde7a05 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 18 Nov 2014, 10:55 (12 years ago) parent71b1b25
1 file changed+3−1
tests/qmltests/Stages/tst_SpreadDelegate.qml+3−1
tests/qmltests/Stages/tst_SpreadDelegate.qml+3−1
@@ -137,7 +137,9 @@ Rectangle {
137137
138138 if (data.swipeToClose) {
139139 verify(appWindowWithShadow.y < 0);
140− verify(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance) < units.gu(1));
140+ // Verify that the delegate started moving exactly 2 gus after the finger movement
141+ // and did not jump up to the finger, but lags those 2 gus behind
142+ verify(Math.abs(Math.abs(appWindowWithShadow.y) - dragDistance) == units.gu(2));
141143
142144 touchRelease(spreadDelegateLoader.item, touchX, toY - units.gu(1));
143145