qt5base-lts/tests/auto/widgets/graphicsview
Gatis Paeglis 0aba5546ef tests: fix and un-blacklist tst_qgraphicsview::hoverLeave
Tests should not use QCursor to emulate mouse move, see QCursor::setPos() docs.

The flakiness of the test on XCB is not surprising when the test queries geometry
even before the window has been shown. With the re-factored version I could not
reproduce flakiness anymore.

Removed Q_OS_MAC and closed QTBUG-26274 as test passes on macOS from which I
assume that the underlying issue has been fixed.

Removed Q_OS_QNX ifdef as test does not rely on QCursor anymore.

This patch also fixes the issues on minimal / offscreen platform plugins.
QCursor::setPos() is evil for auto test purposes.

Note:

We intentionally use QTest::mouseMove(QWindow *window, ..), not the QWidget overload.
The QWindow version gets routed through QWSI, which ensures that all necessary events
are generated as expect. In QWidget code path this is currently disabled by
QTEST_QPA_MOUSE_HANDLING.

Change-Id: I285c26cff09e3f2750f8c2abbb1f46c8f7be984a
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 1af927976a)
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Liang Qi <liang.qi@qt.io>
2017-10-17 13:58:29 +00:00
..
qgraphicsanchorlayout Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsanchorlayout1 Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicseffectsource Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsgridlayout Fix layout tests for GCC 5.2.x/5.3.x 2017-03-30 06:58:07 +00:00
qgraphicsitem tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicsitemanimation tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslayout tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslayoutitem tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslinearlayout Fix layout tests for GCC 5.2.x/5.3.x 2017-03-30 06:58:07 +00:00
qgraphicsobject Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicspixmapitem Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicspolygonitem Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsproxywidget Convert features.wheelevent to QT_CONFIG 2017-06-28 16:15:09 +00:00
qgraphicsscene Blacklist tst_QGraphicsScene::removeItem on OS X 10.11 in CI 2017-05-11 10:32:38 +00:00
qgraphicssceneindex Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qgraphicstransform Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsview tests: fix and un-blacklist tst_qgraphicsview::hoverLeave 2017-10-17 13:58:29 +00:00
qgraphicswidget Revert "tst_qgraphicswidget expect fail on Win 10" 2017-08-29 11:59:23 +00:00
graphicsview.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00