tst_QTabWidget: Add unconditional qWait() back
paintEventCount() is currently flaky on macOS. It gets extra paint events after
qWaitForWindowExposed() returns, which causes the following assertions to fail.
Add the wait that was removed in 0cb940b1d3 back
to fix those failures.
Task-number: QTBUG-68032
Change-Id: I68e0b6008de40922ec740291dfdd1842e0f62f89
Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
bb10
parent
259648f876
commit
3761d99512
|
|
@ -549,7 +549,9 @@ void tst_QTabWidget::paintEventCount()
|
|||
QCOMPARE(tw->currentIndex(), 0);
|
||||
|
||||
tw->show();
|
||||
QVERIFY(QTest::qWaitForWindowActive(tw));
|
||||
QVERIFY(QTest::qWaitForWindowExposed(tw));
|
||||
// Wait for extra paint events that happen at least on macOS
|
||||
QTest::qWait(1000);
|
||||
|
||||
// Mac, Windows and Windows CE get multiple repaints on the first show, so use those as a starting point.
|
||||
static const int MaxInitialPaintCount =
|
||||
|
|
|
|||
Loading…
Reference in New Issue