summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel d'Andrada <daniel.dandrada@luxoft.com>2018-04-09 14:23:49 +0200
committerDaniel d'Andrada <daniel.dandrada@luxoft.com>2018-04-10 06:56:01 +0000
commit67784558e359d601343c51898359e5e9b97dad20 (patch)
treebae938063b74533353056e0f100da93c5361c273 /tests
parent886776c496d8902b56d47f7e5253d2e3a540b1f5 (diff)
downloadqtlocation-67784558e359d601343c51898359e5e9b97dad20.tar.gz
QQuickGeoMapGestureArea: Fix crasher when m_mousePoint is null
Happens when the first input it receives is a touch one. Task-number: QTBUG-67580 Change-Id: Ia9441c753da15f2fe907901450d182027e11c8aa Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative_ui/tst_map_flick.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/declarative_ui/tst_map_flick.qml b/tests/auto/declarative_ui/tst_map_flick.qml
index ba10d12e..16598d29 100644
--- a/tests/auto/declarative_ui/tst_map_flick.qml
+++ b/tests/auto/declarative_ui/tst_map_flick.qml
@@ -348,5 +348,17 @@ Item {
map.disableOnPanStartedWithNoGesture = true
disable_onPanStarted()
}
+
+ /*
+ Regression test for QTBUG-67580 where touching the map
+ (as opposing to clicking it with a mouse) would cause a crash.
+ So this test is merely about surviving a tap.
+ */
+ function test_touch()
+ {
+ touchEvent(map).press(0).commit();
+ wait(25);
+ touchEvent(map).release(0).commit();
+ }
}
}