From a99707bcbed3eaace95c21836ce1b4d58452e9d5 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 26 Feb 2015 16:20:43 +0100 Subject: tst_QQuickPathView::mouseDrag(): Skip on Windows if drag fails to start. The test can be thrown off by external mouse move events which influence the calculation of the drag distances. It is not clear where they originate from on the CI. FAIL! : tst_QQuickPathView::mouseDrag() 'pathview->isMoving()' returned FALSE. () tst_qquickpathview.cpp(1506) : failure location Change-Id: I398304b5597579033df81e1d0d32b2a3ab5516d6 Reviewed-by: Laszlo Agocs --- tests/auto/quick/qquickpathview/tst_qquickpathview.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp index 4f45d0c076..7db15522b5 100644 --- a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp +++ b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp @@ -1503,6 +1503,10 @@ void tst_QQuickPathView::mouseDrag() QGuiApplication::sendEvent(window.data(), &mv); } // next move beyond threshold does trigger drag +#ifdef Q_OS_WIN + if (!pathview->isMoving()) + QSKIP("Skipping due to interference from external mouse move events."); +#endif // Q_OS_WIN QVERIFY(pathview->isMoving()); QVERIFY(pathview->isDragging()); QCOMPARE(movingSpy.count(), 1); -- cgit v1.2.3