qt5base-lts/tests/auto/widgets/graphicsview/qgraphicsview
Morten Johan Sørvig dae8133ded Stabilize tst_qgraphicsitem and tst_qgraphicsview
Add qWaitForWindowExposed() calls in addition to the
existing qWaitForWindowActive().

Depending on the platform, window activation events may
be synchronous, which means that a window can (and will)
become active before it becomes exposed.

This causes test failures for tests that count paint
event, and does not wait-for-exposed, when the expose/paint
event is delivered after waitForWindowActive() has returned.

We need to keep the waitForWindowActive() as well: the
test has several qWait() calls with he comment:
  “Increase the probability of window activation not
   causing another repaint of test items”.
These qWait() calls can possibly be removed in a future
commit.

Task-number: QTBUG-66536
Task-number: QTBUG-61967
Change-Id: Ie61bba058b583fdd1d80e600475aff3efccc32eb
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2018-03-19 14:38:23 +00:00
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST Blacklist tst_QGraphicsView::itemsInRect_cosmeticAdjust on Ubuntu 2018-03-05 07:27:17 +00:00
qgraphicsview.pro testlib: start sharing common helper functions 2017-11-04 20:11:22 +00:00
tst_qgraphicsview_2.cpp tst_qgraphicsview: use new QTest::addRow() more 2017-01-26 10:31:36 +00:00
tst_qgraphicsview.cpp Stabilize tst_qgraphicsitem and tst_qgraphicsview 2018-03-19 14:38:23 +00:00
tst_qgraphicsview.h Speed up compilation of tst_qgraphicsview_2.cpp 2016-10-03 14:59:56 +00:00