aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/pointerhandlers/multipointtoucharea_interop
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-08-02 16:07:43 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-08-02 17:48:24 +0000
commit64ee8b948a8380c805729cc3006507c1e260abd3 (patch)
treea68b4372d60279e55b84a7b88548ea8f46d7e53b /tests/auto/quick/pointerhandlers/multipointtoucharea_interop
parent6008c5ded48b6d03d56bf4c4ab96177fbb185f93 (diff)
tst_MptaInterop::touchesThenPinch: don't forget to flush
The test is actually flaky without that, but it seems to have been missing already. Change-Id: Ic619c66d924c18d3303f1d6bb65d42bc133c56a7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/auto/quick/pointerhandlers/multipointtoucharea_interop')
-rw-r--r--tests/auto/quick/pointerhandlers/multipointtoucharea_interop/tst_multipointtoucharea_interop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/quick/pointerhandlers/multipointtoucharea_interop/tst_multipointtoucharea_interop.cpp b/tests/auto/quick/pointerhandlers/multipointtoucharea_interop/tst_multipointtoucharea_interop.cpp
index 5959db0c5a..b994e0fc07 100644
--- a/tests/auto/quick/pointerhandlers/multipointtoucharea_interop/tst_multipointtoucharea_interop.cpp
+++ b/tests/auto/quick/pointerhandlers/multipointtoucharea_interop/tst_multipointtoucharea_interop.cpp
@@ -268,6 +268,8 @@ void tst_MptaInterop::touchesThenPinch()
for (int i = 0; i < 8; ++i) {
p2 += QPoint(8, -8);
touch.move(2, p2).commit();
+ QQuickTouchUtils::flush(window);
+ QVERIFY(pointerEvent->point(0)->passiveGrabbers().contains(drag));
if (!dragTookGrab && pointerEvent->point(0)->exclusiveGrabber() == drag)
dragTookGrab = i;
}