qt5base-lts/tests/auto/widgets
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
..
dialogs Replace 'an unique' with 'a unique' 2017-10-11 18:44:57 +00:00
effects Revert "QWidgetEffectSourcePrivate::draw(): Call render() when no shared painter exists" 2017-06-14 13:00:35 +00:00
gestures autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
graphicsview tests: fix and un-blacklist tst_qgraphicsview::hoverLeave 2017-10-17 13:58:29 +00:00
itemviews Blacklist tst_QItemDelegate::testLineEditValidation in openSUSE 42.3 2017-09-20 10:06:34 +00:00
kernel Extend blacklisting of tst_qwidget tests to cover RHEL 7.3 & 7.4 2017-10-11 09:35:05 +00:00
styles tst_QStyle::drawItemPixmap(): Check on the image color 2017-07-19 07:33:38 +00:00
util QCompleter: Send activated() signal only once on return key 2017-09-22 00:02:06 +00:00
widgets QShortcut: Fall back to cross platform code in absence of QPA menu 2017-10-17 02:34:35 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00