summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2019-02-20 16:36:37 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2019-02-21 11:19:30 +0000
commit6c1c24e8e47895e7ce045d9650e2b161c7c014f9 (patch)
tree13dfa54be3f26c2f26101e2dcbc230b85250468b
parent633b0f40ca82709863bad48e0ed6a1c92ad3b8b4 (diff)
downloadqtlocation-6c1c24e8e47895e7ce045d9650e2b161c7c014f9.tar.gz
Fix toCoordinate calls in qml tests
Task-number: QTBUG-73943 Change-Id: Ia6c008575d0415f5301d177114e4a906cdc7f2e9 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
-rw-r--r--tests/auto/declarative_ui/tst_map_error.qml4
-rw-r--r--tests/auto/declarative_ui/tst_map_item.qml2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative_ui/tst_map_error.qml b/tests/auto/declarative_ui/tst_map_error.qml
index 35613f63..a5e122f0 100644
--- a/tests/auto/declarative_ui/tst_map_error.qml
+++ b/tests/auto/declarative_ui/tst_map_error.qml
@@ -147,9 +147,9 @@ Item {
function test_map_toCoordinate()
{
map_no_plugin.center = coordinate
- compare(map_no_plugin.toCoordinate(50,50).isValid,false)
+ compare(map_no_plugin.toCoordinate(Qt.point(50,50)).isValid,false)
map_error_plugin.center = coordinate
- compare(map_error_plugin.toCoordinate(50,50).isValid,false)
+ compare(map_error_plugin.toCoordinate(Qt.point(50,50)).isValid,false)
}
function test_map_fromCoordinate()
diff --git a/tests/auto/declarative_ui/tst_map_item.qml b/tests/auto/declarative_ui/tst_map_item.qml
index 1646fdba..68437c51 100644
--- a/tests/auto/declarative_ui/tst_map_item.qml
+++ b/tests/auto/declarative_ui/tst_map_item.qml
@@ -443,7 +443,7 @@ Item {
map.center = preMapCircle.center
verify(LocationTestHelper.waitForPolished(map))
point = map.fromCoordinate(preMapCircle.center)
- targetCoordinate = map.toCoordinate(51, 51)
+ targetCoordinate = map.toCoordinate(Qt.point(51, 51))
mousePress(map, point.x, point.y)
for (i = 0; i < 50; i += 1) {
wait(1)