diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-11-20 20:03:09 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-11-23 10:20:52 +0000 |
commit | 59a61324d66263bb219ba8fc4ccdd8c244cddf72 (patch) | |
tree | ef8ac86924d40271a08732329095cf689e0798ba | |
parent | 3395b0c6697516bdf239619303a69c2c8a711288 (diff) | |
download | qtlocation-59a61324d66263bb219ba8fc4ccdd8c244cddf72.tar.gz |
Fix coordianteAnimation test
Change-Id: I755630bb361a83e67a329c6c07048623fe566ede
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
-rw-r--r-- | tests/auto/declarative_ui/tst_map_coordinateanimation.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/declarative_ui/tst_map_coordinateanimation.qml b/tests/auto/declarative_ui/tst_map_coordinateanimation.qml index ec8042fd..7b0e46f8 100644 --- a/tests/auto/declarative_ui/tst_map_coordinateanimation.qml +++ b/tests/auto/declarative_ui/tst_map_coordinateanimation.qml @@ -55,7 +55,10 @@ Item { Behavior on center { id: centerBehavior enabled: false - CoordinateAnimation { duration: animationDuration } + CoordinateAnimation { + id: coordinateAnimation + duration: animationDuration + } } onCenterChanged: { @@ -107,7 +110,8 @@ Item { // Set to coordinate with animation enabled centerBehavior.enabled = true map.center = QtPositioning.coordinate(to.latitude, to.longitude) - wait(animationDuration * 2) + wait(animationDuration) + tryCompare(coordinateAnimation,"running",false) //check correct start position compare(coordinateList[0].latitude, from.latitude) |