qt5base-lts/tests/auto/widgets/graphicsview
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
..
qgraphicsanchorlayout Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsanchorlayout1 tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +00:00
qgraphicseffectsource qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
qgraphicsgridlayout tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +00:00
qgraphicsitem Make tst_QGraphicsItem painting tests most robust 2019-07-10 06:17:09 +02: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 tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +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 QGraphicsProxyWidget: Don't crash within setWidget() when a child proxy has no assigned widget 2018-11-22 16:43:38 +00:00
qgraphicsscene qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
qgraphicssceneindex winrt: make graphicsview auto tests pass 2018-05-28 06:50:46 +00:00
qgraphicstransform Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsview Use Q_UNUSED(updateRect) when building without QT_BUILD_INTERNAL 2019-03-18 10:38:50 +00:00
qgraphicswidget qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
graphicsview.pro winrt: make graphicsview auto tests pass 2018-05-28 06:50:46 +00:00