aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-04-04 12:41:22 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-04-04 10:44:51 +0000
commitb4f36c22f4b883679c0dcd8a98a221cbdc987d08 (patch)
tree167fd7bda9c8419fd04076b794d8151026bc0ef9 /tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
parent4af4741c4a833cd9527bd70accdcab655ceb3559 (diff)
Adapt tst_qquickflickable::nestedSliderUsingTouch for slow CI
QQuickTouchUtils::flush() doesn't actually cause all events to be fully delivered. Task-number: QTBUG-59840 Change-Id: Id5bcd97fa06c0d183e633494eca6aa61908348ae Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickflickable/tst_qquickflickable.cpp')
-rw-r--r--tests/auto/quick/qquickflickable/tst_qquickflickable.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
index 3ecebfb48f..988582f96b 100644
--- a/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
+++ b/tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
@@ -2044,10 +2044,10 @@ void tst_qquickflickable::nestedSliderUsingTouch()
QCOMPARE(tda->active(), !ungrabs);
QTest::touchEvent(window, touchDevice).release(0, p0, window);
QQuickTouchUtils::flush(window);
- QCOMPARE(tda->touchPointStates.first(), Qt::TouchPointPressed);
- QCOMPARE(tda->touchUpdates, updates);
- QCOMPARE(tda->touchReleases, releases);
- QCOMPARE(tda->ungrabs, ungrabs);
+ QTRY_COMPARE(tda->touchPointStates.first(), Qt::TouchPointPressed);
+ QTRY_COMPARE(tda->touchUpdates, updates);
+ QTRY_COMPARE(tda->touchReleases, releases);
+ QTRY_COMPARE(tda->ungrabs, ungrabs);
}
// QTBUG-31328