qt5base-lts/tests/auto/widgets
Volker Hilsheimer b426cff1e0 Make tst_QGraphicsItem painting tests most robust
Counting absolute paint events is fragile, as there are no guarantees
that a single call to QApp::processEvents only delivers a single paint
event to a widget. As of QTBUG-76566, we see that the items occasionally
receive three calls to paint, which can be simulated by activating other
windows while the test is running and waiting for events to be
processed.

Instead, verify that we do receive any paint events as the first test,
and then verify increments when we expect updates.

This also reverts change 24b9424adc.

Change-Id: Ib51853e918f31acd3aea10d4109c95f34012a29f
Fixes: QTBUG-76566
Reviewed-by: Dimitrios Apostolou <dimitrios.apostolou@qt.io>
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
2019-07-10 06:17:09 +02:00
..
dialogs Qt Widgets: Make tests pass on High DPI screens and scaling 2019-05-29 12:52:51 +02:00
effects qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
graphicsview Make tst_QGraphicsItem painting tests most robust 2019-07-10 06:17:09 +02:00
itemviews Qt Widgets: Make tests pass on High DPI screens and scaling 2019-05-29 12:52:51 +02:00
kernel Update visible window's alpha when toggling WA_TranslucentBackground 2019-07-02 16:35:18 +02:00
styles QStyleSheetStyle::repolish: only run on direct children 2019-04-12 14:33:32 +00:00
util Brush up tst_QCompleter 2019-06-07 12:34:47 +02:00
widgets Stabilize tst_qsplitter 2019-06-19 18:32:19 +02:00
widgets.pro Move QGestureRecognizer test to widgets/kernel 2017-06-02 18:36:11 +00:00