on xenial help sign in
take a different more reliable approach at detecting whether the window is moving
commitb316dd19b7725568b821a2b8511db7876efd9eac authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 1 Mar 2017, 18:01 (10 years ago) parentb667a48
1 file changed+2−4
tests/qmltests/Stage/tst_DesktopStage.qml+2−4
tests/qmltests/Stage/tst_DesktopStage.qml+2−4
@@ -778,7 +778,6 @@ Item {
778778 verify(decoration);
779779
780780 // grab the decoration
781− var posBefore = Qt.point(appDelegate.x, appDelegate.y);
782781 mousePress(decoration);
783782
784783 // enter the spread
@@ -788,9 +787,8 @@ Item {
788787 // try to drag the window
789788 mouseMove(decoration, 10, 10, 200);
790789
791− // verify it hasn't moved
792− var posAfter = Qt.point(appDelegate.x, appDelegate.y);
793− tryCompareFunction(function(){return posBefore == posAfter;}, true);
790+ // verify it's not moving even before we release the decoration drag
791+ tryCompare(appDelegate, "dragging", false);
794792
795793 // cleanup
796794 mouseRelease(decoration);