summaryrefslogtreecommitdiff
path: root/tests/auto/declarative_ui/tst_map_flick.qml
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2016-05-23 19:15:10 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2016-05-26 13:50:25 +0000
commitf897775850dfbe0e668e9c8b428537e8bb096c01 (patch)
tree423b6feb06ab09d1091c8072aef75c5f71799ca0 /tests/auto/declarative_ui/tst_map_flick.qml
parent55414e7ff710b5ca43f248d0609a15fc6cbe24ff (diff)
downloadqtlocation-f897775850dfbe0e668e9c8b428537e8bb096c01.tar.gz
Replace waitForRendering calls in qml unit tests
Changes eea315187d1add70aaf69745c031b8d6342b2303 moved map items final position calculation to "polish" call of sg. In unit testing "waitForRendering" was introduced to sync between input events processing and items being polished. Unfortunately this approach is race condition prone, since render can run in separate thread and frame swapped signals are emitted from render thread. Replace waitForRendering with waitForPolished instead. Improve test execution by providing init() and intTestCase() functions for map items unit tests, so test can be run "out of order" manner. Add missing namespace macros for location test qml plugin. Task-number: QTBUG-31797 Task-number: QTBUG-53455 Change-Id: Iec083143ae621e5be603d03f43d6ef260b056d0f Reviewed-by: Paolo Angelelli <paolo.angelelli@theqtcompany.com> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests/auto/declarative_ui/tst_map_flick.qml')
-rw-r--r--tests/auto/declarative_ui/tst_map_flick.qml1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/declarative_ui/tst_map_flick.qml b/tests/auto/declarative_ui/tst_map_flick.qml
index e225480d..4094a7c7 100644
--- a/tests/auto/declarative_ui/tst_map_flick.qml
+++ b/tests/auto/declarative_ui/tst_map_flick.qml
@@ -288,7 +288,6 @@ Item {
{
map.center.latitude = 50
map.center.longitude = 50
- waitForRendering(map)
mousePress(page, 0, 0)
for (var i = 0; i < 50; i += 5) {
wait(20)