summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Chen <ian.1.chen@nokia.com>2012-04-27 10:49:28 +1000
committerQt by Nokia <qt-info@nokia.com>2012-04-27 06:25:38 +0200
commit8cb0462bda8d7410d1e16ef8101afded22a298f4 (patch)
treecbced7cd5eba9d2e0574efb1eea97c5d56d4ee8e /tests
parent0f4b0b96a1ea36be198e1a5daa145fd50e7c5530 (diff)
downloadqtlocation-8cb0462bda8d7410d1e16ef8101afded22a298f4.tar.gz
Change the way polygon coords are set in auto tests
Change-Id: I652d31155a7f4322f3b9bf0ff04e1e9e99d5b607 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative_ui/tst_map_item_fit_viewport.qml9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml b/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
index ee29a78d..2f0abca3 100644
--- a/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
+++ b/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
@@ -374,13 +374,8 @@ Item {
verify_visibility_all_items()
var i
for (i = 0; i < preMapPolygonDefaultPath.length; ++i) {
- var lon = preMapPolygon.path[0].longitude + move * xDir
- var lat = preMapPolygon.path[0].latitude + move * yDir
- var coord = map.toCoordinate(Qt.point)
- coord.longitude = lon
- coord.latitude = lat
- preMapPolygon.removeCoordinate(preMapPolygon.path[0])
- preMapPolygon.addCoordinate(coord)
+ preMapPolygon.path[i].longitude += move * xDir
+ preMapPolygon.path[i].latitude += move * yDir
}
calculate_bounds()
verify(!is_coord_on_screen(mapPolygonTopLeft))