summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-01-30 13:11:44 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-02-13 11:27:09 +0000
commit3995bee767306476993134cb9c42499daf9ed1bc (patch)
tree7d728ac9c4631df64c1655dd6b6b5b20b7f53e08 /tests
parent84e159086d2f5dda899737e1282f760e793e6654 (diff)
downloadqtlocation-3995bee767306476993134cb9c42499daf9ed1bc.tar.gz
Change window size to prevent resizing failure on windows
This patch changes the window size of tst_map_flick to 120x120, that seems to be the minimum on windows platforms. This to prevent test failures. Task-number: QTBUG-56679 Change-Id: I08082710d843f3330a2d7c80b494d3732e0675bc Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative_ui/tst_map_flick.qml10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/declarative_ui/tst_map_flick.qml b/tests/auto/declarative_ui/tst_map_flick.qml
index 9d43b72b..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)
@@ -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