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>
commitf897775850dfbe0e668e9c8b428537e8bb096c01
parent55414e7ff710b5ca43f248d0609a15fc6cbe24ff
authorMichal Klocek <michal.klocek@theqtcompany.com>
committerAlex Blasche <alexander.blasche@theqtcompany.com>
commit timeThu, 26 May 2016 13:50:25 +0000