diff --git a/tests/auto/declarative_ui/tst_map_error.qml b/tests/auto/declarative_ui/tst_map_error.qml
index 35613f63c1c4eebaf114e7e1c38d1854812a00d6..a5e122f0123015584a982df71a21405df5359e90 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 1646fdbaf8b6f447668a49c83dc8d7080bff9106..68437c51ef7239feb65960b525b9e437113793ad 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)