diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative_ui/tst_map_itemview.qml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/auto/declarative_ui/tst_map_itemview.qml b/tests/auto/declarative_ui/tst_map_itemview.qml index ff24e7af..097212ca 100644 --- a/tests/auto/declarative_ui/tst_map_itemview.qml +++ b/tests/auto/declarative_ui/tst_map_itemview.qml @@ -447,7 +447,8 @@ Item { } testingListModel.remove(0) - compare(mapForTestingListModel.mapItems.length, 2) + // default exit animation kicks in here, of length 300msec + tryCompare(mapForTestingListModel, "mapItemsLength", 2) for (var i = 0; i < 2; ++i) { itemCoord = mapForTestingListModel.mapItems[i].center @@ -460,7 +461,8 @@ Item { compare(mapForTestingListModel.mapItems[2].center, QtPositioning.coordinate(1, 1)) testingListModel.clear() - compare(mapForTestingListModel.mapItems.length, 0) + // default exit animation kicks in here, of length 300msec + tryCompare(mapForTestingListModel, "mapItemsLength", 0) // Repopulating the model with initial data testingListModel.append({ "lat": 11, "lon": 31 }) @@ -511,7 +513,8 @@ Item { routeModel.update(); tryCompare(mapForTestingRouteModel, "mapItemsLength", 3) routeModel.reset(); - compare(mapForTestingRouteModel.mapItems.length, 0) + // default exit animation kicks in here, of length 300msec + tryCompare(mapForTestingRouteModel, "mapItemsLength", 0) routeModel.reset(); // clear empty model routeQuery.numberAlternativeRoutes = 3 routeModel.update(); @@ -532,7 +535,8 @@ Item { compare(mapForTestingRouteModel.mapItems.length, 4) compare(mapForTestingRouteModel.mapItems[3], externalCircle2) routeModel.reset(); - compare(mapForTestingRouteModel.mapItems.length, 1) + // default exit animation kicks in here, of length 300msec + tryCompare(mapForTestingRouteModel, "mapItemsLength", 1) mapForTestingRouteModel.clearMapItems() compare(mapForTestingRouteModel.mapItems.length, 0) |