Stabilize tests using utilities from QQuickViewTestUtil.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Fri, 23 Aug 2013 11:35:00 +0000 (13:35 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 26 Aug 2013 08:21:56 +0000 (10:21 +0200)
commit6ba7d88df623df5bce85bfdae853fc49006e76f2
tree64de42db0f026a55b684ea787999a2e8c95762d6
parentcf3537e99c75d3bb92b9d4ed6f4d437e316dcf01
Stabilize tests using utilities from QQuickViewTestUtil.

Change QQuickViewTestUtil::createView() to center the window on
the screen to avoid taskbar areas. Add routine to move the mouse
away and use that in tests using QQuickViewTestUtil::flick()
and other mouse interaction since the mouse cursor can interfere
with it. Affected tests:  qquickgridview, qquickpathview,
qquickflickable, qquicklistview, qquickrepeater and qquickpositioners.

Task-number: QTBUG-33017
Change-Id: I540c0efb54a231dcb44c8fd5ad9573a2d4d4b9df
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
tests/auto/quick/shared/viewtestutil.cpp
tests/auto/quick/shared/viewtestutil.h