aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/events/tst_touch.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-08-08 14:31:35 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-08-08 12:57:54 +0000
commit41d0240c8c203fe701efbddc00d0a05254a8a2c4 (patch)
tree55b9edad50aac54b54aebd541f535d827bcb1e2f /tests/auto/qmltest/events/tst_touch.qml
parent003e24d72a9647e2dc397906234059fee19103ec (diff)
parent1b0c9b46ce13b0f9c533f18fb420ff10ad56e4f6 (diff)
Merge branch 'wip/pointerhandler' into dev
Diffstat (limited to 'tests/auto/qmltest/events/tst_touch.qml')
-rw-r--r--tests/auto/qmltest/events/tst_touch.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/qmltest/events/tst_touch.qml b/tests/auto/qmltest/events/tst_touch.qml
index 5b209a6d0b..fd603e5a71 100644
--- a/tests/auto/qmltest/events/tst_touch.qml
+++ b/tests/auto/qmltest/events/tst_touch.qml
@@ -35,6 +35,16 @@ MultiPointTouchArea {
width: 100
height: 100
+ // touchUpdatedSpy stores the QQuickTouchPoint, and in some cases
+ // MultiPointTouchArea can delete it out from under us.
+ // (test_simpleChain was failing because touchUpdatedSpy.signalArguments[0][0][0]
+ // ended up as an empty object somehow.) If we declare
+ // all the touchpoints that this test will use, that won't happen.
+ touchPoints: [
+ TouchPoint { },
+ TouchPoint { }
+ ]
+
SignalSpy {
id: touchUpdatedSpy
target: touchArea