summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-02-26 16:20:43 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-11 21:08:41 +0000
commita99707bcbed3eaace95c21836ce1b4d58452e9d5 (patch)
tree71d462557acec873a5eced67e66255e1623614ab
parentd1c5f134bd455c7af42a4a912e74ad0f97f21346 (diff)
tst_QQuickPathView::mouseDrag(): Skip on Windows if drag fails to start.v5.5.0-alpha1
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 <laszlo.agocs@theqtcompany.com>
-rw-r--r--tests/auto/quick/qquickpathview/tst_qquickpathview.cpp4
1 files changed, 4 insertions, 0 deletions
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);