tst_QGL: Use qWaitForWindowExposed()
Instead of an unconditional wait. Change-Id: I360cd665c10c3fd4f936c95ef04957ae1c49c0de Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
This commit is contained in:
parent
95c8f24b71
commit
8c3475c190
@ -923,8 +923,7 @@ void tst_QGL::partialGLWidgetUpdates()
|
||||
widget.setFixedSize(150, 150);
|
||||
widget.setAutoFillBackground(autoFillBackground);
|
||||
widget.show();
|
||||
|
||||
QTest::qWait(200);
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&widget));
|
||||
|
||||
if (widget.format().doubleBuffer() != doubleBufferedContext)
|
||||
QSKIP("Platform does not support requested format");
|
||||
|
Loading…
Reference in New Issue
Block a user