diff options
Diffstat (limited to 'tests/auto/declarative_ui/tst_map_flick.qml')
-rw-r--r-- | tests/auto/declarative_ui/tst_map_flick.qml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/auto/declarative_ui/tst_map_flick.qml b/tests/auto/declarative_ui/tst_map_flick.qml index 15f13b5f..7a58b186 100644 --- a/tests/auto/declarative_ui/tst_map_flick.qml +++ b/tests/auto/declarative_ui/tst_map_flick.qml @@ -34,8 +34,8 @@ import QtPositioning 5.5 Item { // General-purpose elements for the test: id: page - width: 100 - height: 100 + width: 120 + height: 120 Plugin { id: testPlugin; name: "qmlgeo.test.plugin"; allowExperimental: true } property variant coordinate: QtPositioning.coordinate(10, 11) @@ -189,7 +189,7 @@ Item { flick_down() } - function test_flick_down_with_filtetring() + function test_flick_down_with_filtering() { mouseAreaTop.visible = true mouseAreaBottom.visible = true @@ -235,12 +235,14 @@ Item { { map.center.latitude = 50 map.center.longitude = 50 - mousePress(page, 0, 0) + mousePress(page, 2, 2) + var pos; for (var i = 0; i < 50; i += 5) { wait(20) mouseMove(page, i, i, 0, Qt.LeftButton); + pos = i; } - mouseRelease(page, 50, 50) + mouseRelease(page, pos, pos) verify(map.center.latitude > 50) verify(map.center.longitude < 50) var moveLatitude = map.center.latitude |